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