]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-panic/not-panic-safe.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / not-panic / not-panic-safe.stderr
1 error[E0277]: the type `&mut i32` may not be safely transferred across an unwind boundary
2   --> $DIR/not-panic-safe.rs:9:5
3    |
4 LL |     assert::<&mut i32>();
5    |     ^^^^^^^^^^^^^^^^^^ `&mut i32` may not be safely transferred across an unwind boundary
6    |
7    = help: the trait `std::panic::UnwindSafe` is not implemented for `&mut i32`
8 note: required by `assert`
9   --> $DIR/not-panic-safe.rs:6:1
10    |
11 LL | fn assert<T: UnwindSafe + ?Sized>() {}
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.