| |
| thread 'main' ($TID) panicked at tests/fail/panic/bad_unwind.rs:LL:CC: |
| explicit panic |
| note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
| note: in Miri, you may have to set `MIRIFLAGS=-Zmiri-env-forward=RUST_BACKTRACE` for the environment variable to have an effect |
| error: Undefined Behavior: unwinding past a stack frame that does not allow unwinding |
| --> tests/fail/panic/bad_unwind.rs:LL:CC |
| | |
| LL | std::panic::catch_unwind(|| unwind()).unwrap_err(); |
| | ^^^^^^^^ Undefined Behavior occurred here |
| | |
| = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior |
| = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information |
| = note: stack backtrace: |
| 0: main::{closure#0} |
| at tests/fail/panic/bad_unwind.rs:LL:CC |
| 1: std::panicking::catch_unwind::do_call |
| at RUSTLIB/std/src/panicking.rs:LL:CC |
| 2: std::panicking::catch_unwind |
| at RUSTLIB/std/src/panicking.rs:LL:CC |
| 3: std::panic::catch_unwind |
| at RUSTLIB/std/src/panic.rs:LL:CC |
| 4: main |
| at tests/fail/panic/bad_unwind.rs:LL:CC |
| |
| note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace |
| |
| error: aborting due to 1 previous error |
| |