]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/test-should-fail-bad-message.rs
Rollup merge of #68328 - jethrogb:jb/target-llvm-args, r=alexcrichton
[rust.git] / src / test / run-fail / test-should-fail-bad-message.rs
1 // check-stdout
2 // error-pattern:thread 'test_foo' panicked at
3 // compile-flags: --test
4 // ignore-emscripten
5
6 #[test]
7 #[should_panic(expected = "foobar")]
8 fn test_foo() {
9     panic!("blah")
10 }