rust/tests/compile-fail/panic/panic_abort2.rs
2020-12-10 19:53:45 +01:00

7 lines
145 B
Rust

// error-pattern: the program aborted execution
// compile-flags: -C panic=abort
fn main() {
std::panic!("{}-panicking from libstd", 42);
}