]> git.proxmox.com Git - rustc.git/blame - src/test/ui/not-panic/not-panic-safe.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / not-panic / not-panic-safe.stderr
CommitLineData
b7449926 1error[E0277]: the type `&mut i32` may not be safely transferred across an unwind boundary
ee023bcb 2 --> $DIR/not-panic-safe.rs:8:5
b7449926
XL
3 |
4LL | assert::<&mut i32>();
5 | ^^^^^^^^^^^^^^^^^^ `&mut i32` may not be safely transferred across an unwind boundary
6 |
1b1a35ee
XL
7 = help: the trait `UnwindSafe` is not implemented for `&mut i32`
8 = note: `UnwindSafe` is implemented for `&i32`, but not for `&mut i32`
94222f64 9note: required by a bound in `assert`
ee023bcb 10 --> $DIR/not-panic-safe.rs:5:14
94222f64
XL
11 |
12LL | fn assert<T: UnwindSafe + ?Sized>() {}
13 | ^^^^^^^^^^ required by this bound in `assert`
b7449926
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.