rust/tests/ui/panics/test-should-panic-no-message.rs
2025-01-23 20:51:29 +08:00

11 lines
160 B
Rust

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