]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-panic/not-panic-safe-5.stderr
Merge commit '9e3cd88718cd1912a515d26dbd9c4019fd5a9577' into clippyup
[rust.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 | fn assert<T: UnwindSafe + ?Sized>() {}
5    |              ---------- required by this bound in `assert`
6 ...
7 LL |     assert::<*const UnsafeCell<i32>>();
8    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
9    |
10    = help: the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>`
11    = note: required because of the requirements on the impl of `UnwindSafe` for `*const UnsafeCell<i32>`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.