1 thread 'main' panicked at 'explicit panic', $DIR/bad_unwind.rs:LL:CC
2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3 error: Undefined Behavior: unwinding past a stack frame that does not allow unwinding
4 --> $DIR/bad_unwind.rs:LL:CC
6 LL | std::panic::catch_unwind(|| unwind()).unwrap_err();
7 | ^^^^^^^^ unwinding past a stack frame that does not allow unwinding
9 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
10 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
12 = note: inside closure at $DIR/bad_unwind.rs:LL:CC
13 = note: inside `std::panicking::r#try::do_call::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panicking.rs:LL:CC
14 = note: inside `std::panicking::r#try::<(), [closure@$DIR/bad_unwind.rs:LL:CC]>` at RUSTLIB/std/src/panicking.rs:LL:CC
15 = note: inside `std::panic::catch_unwind::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panic.rs:LL:CC
16 note: inside `main` at $DIR/bad_unwind.rs:LL:CC
17 --> $DIR/bad_unwind.rs:LL:CC
19 LL | std::panic::catch_unwind(|| unwind()).unwrap_err();
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
24 error: aborting due to previous error