summaryrefslogtreecommitdiffstats
path: root/src/test/ui/catch-unwind-bang.rs
blob: fb3503937cb54a0fa62605f8bdc78225bde8edb8 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
// needs-unwind

fn worker() -> ! {
    panic!()
}

fn main() {
    std::panic::catch_unwind(worker).unwrap_err();
}