]> git.lizzy.rs Git - rust.git/blob - src/test/ui/catch-unwind-bang.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[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 }