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