]> git.proxmox.com Git - rustc.git/blob - src/test/ui/not-panic/not-panic-safe-5.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / not-panic / not-panic-safe-5.stderr
1 error[E0277]: the type `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
2 --> $DIR/not-panic-safe-5.rs:9:5
3 |
4 LL | assert::<*const UnsafeCell<i32>>();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
6 |
7 = help: the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>`
8 = note: required because of the requirements on the impl of `UnwindSafe` for `*const UnsafeCell<i32>`
9 note: required by a bound in `assert`
10 --> $DIR/not-panic-safe-5.rs:6:14
11 |
12 LL | fn assert<T: UnwindSafe + ?Sized>() {}
13 | ^^^^^^^^^^ required by this bound in `assert`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.