fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
884 B15 linesraw
1error[E0277]: the type `std::cell::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   |
4LL | fn assert<T: UnwindSafe + ?Sized>() {}
5   |    ------    ---------- required by this bound in `assert`
6...
7LL |     assert::<*const UnsafeCell<i32>>();
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
9   |
10   = help: the trait `std::panic::RefUnwindSafe` is not implemented for `std::cell::UnsafeCell<i32>`
11   = note: required because of the requirements on the impl of `std::panic::UnwindSafe` for `*const std::cell::UnsafeCell<i32>`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.