1 error[E0277]: the type `&mut i32` may not be safely transferred across an unwind boundary
2 --> $DIR/not-panic-safe.rs:19:5
4 LL | assert::<&mut i32>();
5 | ^^^^^^^^^^^^^^^^^^ `&mut i32` may not be safely transferred across an unwind boundary
7 = help: the trait `std::panic::UnwindSafe` is not implemented for `&mut i32`
8 note: required by `assert`
9 --> $DIR/not-panic-safe.rs:16:1
11 LL | fn assert<T: UnwindSafe + ?Sized>() {}
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.