summary refs log tree commit diff
path: root/src/test/run-fail/test-should-fail-bad-message.rs
blob: 3c69bb07d3b18ed9e540e3a5010e61a227679064 (plain)
1
2
3
4
5
6
7
8
9
10
// check-stdout
// error-pattern:thread 'test_foo' panicked at
// compile-flags: --test
// ignore-emscripten

#[test]
#[should_panic(expected = "foobar")]
fn test_foo() {
    panic!("blah")
}