rustc/tests/ui/panics/test-should-panic-no-message.rs
2024-06-21 09:39:33 +02:00

11 lines
170 B
Rust

//@ run-fail
//@ compile-flags: --test
//@ check-stdout
//@ ignore-wasm32 no processes
#[test]
#[should_panic(expected = "foo")]
pub fn test_explicit() {
panic!()
}