Files
rust/tests/ui/panics/panic-take-handler-nop.rs

12 lines
178 B
Rust
Raw Normal View History

//@ run-fail
//@ error-pattern:thread 'main' panicked
//@ error-pattern:foobar
//@ needs-subprocess
2015-12-17 23:51:55 -08:00
use std::panic;
fn main() {
panic::take_hook();
2015-12-17 23:51:55 -08:00
panic!("foobar");
}