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