rust/tests/ui/catch-unwind-bang.rs
2023-01-11 09:32:08 +00:00

11 lines
129 B
Rust

// run-pass
// needs-unwind
fn worker() -> ! {
panic!()
}
fn main() {
std::panic::catch_unwind(worker).unwrap_err();
}