fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the type `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary 2 --> $DIR/interior-mutability.rs:5:18 3 | 4LL | catch_unwind(|| { x.set(23); }); 5 | ------------ ^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: within `Cell<i32>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>` 10note: required because it appears within the type `Cell<i32>` 11 --> $SRC_DIR/core/src/cell.rs:LL:COL 12 = note: required for `&Cell<i32>` to implement `UnwindSafe` 13note: required because it's used within this closure 14 --> $DIR/interior-mutability.rs:5:18 15 | 16LL | catch_unwind(|| { x.set(23); }); 17 | ^^ 18note: required by a bound in `catch_unwind` 19 --> $SRC_DIR/std/src/panic.rs:LL:COL 20 21error: aborting due to previous error 22 23For more information about this error, try `rustc --explain E0277`.