blob: b31b5cab5b724aeaffb98b13f376ca6dbde1cad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// run-pass
// needs-unwind
// ignore-wasm32-bare compiled with panic=abort by default
fn worker() -> ! {
panic!()
}
fn main() {
std::panic::catch_unwind(worker).unwrap_err();
}
|