rust/tests/ui/panics/test-should-fail-bad-message.rs
2024-02-16 20:02:50 +00:00

11 lines
161 B
Rust

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