]> git.lizzy.rs Git - rust.git/blob - tests/ui/not-panic/not-panic-safe.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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:8:14
3    |
4 LL |     assert::<&mut i32>();
5    |              -^^^^^^^
6    |              |
7    |              `&mut i32` may not be safely transferred across an unwind boundary
8    |              help: consider removing the leading `&`-reference
9    |
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
14    |
15 LL | fn assert<T: UnwindSafe + ?Sized>() {}
16    |              ^^^^^^^^^^ required by this bound in `assert`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.