]> git.lizzy.rs Git - rust.git/blob - tests/ui/panics/test-should-panic-bad-message.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / panics / test-should-panic-bad-message.rs
1 // run-fail
2 // compile-flags: --test
3 // check-stdout
4 // ignore-emscripten no processes
5
6 #[test]
7 #[should_panic(expected = "foo")]
8 pub fn test_bar() {
9     panic!("bar")
10 }