summaryrefslogtreecommitdiffstats
path: root/tests/ui/panics/panic-take-handler-nop.rs
blob: d14a3244e610d6d7c7c2fa3d3310541f7a24ab1d (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-fail
// error-pattern:thread 'main' panicked
// error-pattern:foobar
// ignore-emscripten no processes

use std::panic;

fn main() {
    panic::take_hook();
    panic!("foobar");
}