]> git.proxmox.com Git - rustc.git/blame - src/test/ui/catch-unwind-bang.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / catch-unwind-bang.rs
CommitLineData
416331ca 1// run-pass
a2a8927a 2// needs-unwind
abe05a73 3
8bb4bdeb
XL
4fn worker() -> ! {
5 panic!()
a7813a04
XL
6}
7
8fn main() {
8bb4bdeb 9 std::panic::catch_unwind(worker).unwrap_err();
54a0048b 10}