]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/test-should-panic-bad-message.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / test-should-panic-bad-message.rs
1 // compile-flags: --test
2
3 // error-pattern:panicked at 'bar'
4 // check-stdout
5 #[test]
6 #[should_panic(expected = "foo")]
7 pub fn test_bar() {
8     panic!("bar")
9 }