]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/panic-take-handler-nop.rs
Rollup merge of #57859 - GuillaumeGomez:fix-background, r=QuietMisdreavus
[rust.git] / src / test / run-fail / panic-take-handler-nop.rs
1 // error-pattern:thread 'main' panicked at 'foobar'
2
3 use std::panic;
4
5 fn main() {
6     panic::take_hook();
7     panic!("foobar");
8 }