blob: ebea3ef06858c9d2587b07b70eb707707489b447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ run-fail
//@ regex-error-pattern: thread 'main' \(\d+\) panicked
//@ error-pattern: foobar
//@ needs-subprocess
use std::panic;
fn main() {
panic::take_hook();
panic!("foobar");
}
|