summary refs log tree commit diff
path: root/src/test/run-fail/panic-take-handler-nop.rs
blob: bb191a38f8473537d7d046ed70ed67887e01eb79 (plain)
1
2
3
4
5
6
7
8
// error-pattern:thread 'main' panicked at 'foobar'

use std::panic;

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