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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
157 B
Rust
Raw Normal View History

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