rust/src/test/ui/catch-unwind-bang.rs
Florian Bartels 0b0027fd2e Restore ignore tag
This test case actually requires std::process.
2022-09-23 08:19:58 +02:00

11 lines
129 B
Rust

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