16 lines
262 B
Rust
16 lines
262 B
Rust
#![feature(unwind_attributes)]
|
|
|
|
#[unwind(allowed)]
|
|
#[no_mangle]
|
|
extern "C" fn unwind() {
|
|
panic!();
|
|
}
|
|
|
|
fn main() {
|
|
extern "C" {
|
|
fn unwind();
|
|
}
|
|
unsafe { unwind() }
|
|
//~^ ERROR unwinding past a stack frame that does not allow unwinding
|
|
}
|