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

7 lines
157 B
Rust

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