summary refs log tree commit diff
path: root/tests/ui/catch-unwind-bang.rs
blob: c874c649f33301c7e74bf0f6842cc4396557fc75 (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();
}