rust/tests/ui/panics/test-should-fail-bad-messag...

11 lines
156 B
Rust

//@ run-fail
//@ check-stdout
//@ compile-flags: --test
//@ needs-unwind
#[test]
#[should_panic(expected = "foobar")]
fn test_foo() {
panic!("blah")
}