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

7 lines
147 B
Rust

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