Closed
Description
I would expect the following code to abort, and never print Hello
:
#![feature(unwind_attributes)]
#[unwind(aborts)]
fn foo() { // implicitly: extern "Rust"
panic!("foooo");
}
fn main() {
if let Err(_) = std::panic::catch_unwind(|| foo()) {}
println!("Hello");
}
But instead, the unwind
attribute is ignored.
Cc @gnzlbg