rust/src/test/run-fail/panic-take-handler-nop.rs

9 lines
130 B
Rust
Raw Normal View History

// error-pattern:thread 'main' panicked at 'foobar'
2015-12-18 07:51:55 +00:00
use std::panic;
fn main() {
panic::take_hook();
2015-12-18 07:51:55 +00:00
panic!("foobar");
}