]> git.lizzy.rs Git - rust.git/blob - src/test/ui/catch-unwind-bang.rs
Rollup merge of #101642 - SkiFire13:fix-inplace-collection-leak, r=the8472
[rust.git] / src / test / 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 }