]> git.lizzy.rs Git - rust.git/blob - tests/ui/catch-unwind-bang.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / ui / catch-unwind-bang.rs
1 // run-pass
2 // needs-unwind
3
4 fn worker() -> ! {
5     panic!()
6 }
7
8 fn main() {
9     std::panic::catch_unwind(worker).unwrap_err();
10 }