rust/tests/compile-fail/panic/panic_abort2.rs
2020-09-20 15:55:36 +02:00

7 lines
155 B
Rust

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