]> git.lizzy.rs Git - rust.git/blob - src/test/ui/catch-unwind-bang.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / catch-unwind-bang.rs
1 // run-pass
2 // ignore-wasm32-bare compiled with panic=abort by default
3
4 fn worker() -> ! {
5     panic!()
6 }
7
8 fn main() {
9     std::panic::catch_unwind(worker).unwrap_err();
10 }