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

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

11 lines
156 B
Rust
Raw Normal View History

2020-04-16 14:50:32 +08:00
//@ run-fail
//@ check-stdout
//@ compile-flags: --test
//@ needs-unwind
#[test]
#[should_panic(expected = "foobar")]
fn test_foo() {
panic!("blah")
}