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
156 B
Rust
Raw Normal View History

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