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

11 lines
157 B
Rust
Raw Normal View History

2020-04-16 06:50:32 +00:00
// run-fail
// check-stdout
// compile-flags: --test
2016-09-08 01:58:00 +00:00
// ignore-emscripten
#[test]
#[should_panic(expected = "foobar")]
fn test_foo() {
panic!("blah")
}