rust/tests/compile-fail/panic4.rs
2019-02-06 11:41:45 +01:00

6 lines
114 B
Rust

//error-pattern: the evaluated program panicked
fn main() {
core::panic!("{}-panicking from libcore", 42);
}