2020-04-16 01:50:32 -05:00
|
|
|
// run-fail
|
2016-05-22 09:36:55 -05:00
|
|
|
// error-pattern:thread 'main' panicked at 'foobar'
|
2020-05-07 10:39:02 -05:00
|
|
|
// ignore-emscripten no processes
|
2015-12-18 01:51:55 -06:00
|
|
|
|
|
|
|
use std::panic;
|
|
|
|
|
|
|
|
fn main() {
|
2016-05-24 16:24:44 -05:00
|
|
|
panic::take_hook();
|
2015-12-18 01:51:55 -06:00
|
|
|
panic!("foobar");
|
|
|
|
}
|