]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/test-should-panic-no-message.rs
Auto merge of #63994 - Centril:refactor-qualify-consts, r=spastorino,oli-obk
[rust.git] / src / test / run-fail / test-should-panic-no-message.rs
1 // compile-flags: --test
2
3 // error-pattern:panicked at 'explicit panic'
4 // check-stdout
5 #[test]
6 #[should_panic(expected = "foo")]
7 pub fn test_explicit() {
8     panic!()
9 }