Files
rust/tests/ui/panics/test-should-fail-bad-message.rs

11 lines
156 B
Rust
Raw Normal View History

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