fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
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`.