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/not-panic-safe-6.rs:9:14 3 | 4LL | assert::<*mut RefCell<i32>>(); 5 | ^^^^^^^^^^^^^^^^^ `UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary 6 | 7 = help: within `RefCell<i32>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<i32>` 8note: required because it appears within the type `RefCell<i32>` 9 --> $SRC_DIR/core/src/cell.rs:LL:COL 10 = note: required for `*mut RefCell<i32>` to implement `UnwindSafe` 11note: required by a bound in `assert` 12 --> $DIR/not-panic-safe-6.rs:6:14 13 | 14LL | fn assert<T: UnwindSafe + ?Sized>() {} 15 | ^^^^^^^^^^ required by this bound in `assert` 16 17error[E0277]: the type `UnsafeCell<isize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary 18 --> $DIR/not-panic-safe-6.rs:9:14 19 | 20LL | assert::<*mut RefCell<i32>>(); 21 | ^^^^^^^^^^^^^^^^^ `UnsafeCell<isize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary 22 | 23 = help: within `RefCell<i32>`, the trait `RefUnwindSafe` is not implemented for `UnsafeCell<isize>` 24note: required because it appears within the type `Cell<isize>` 25 --> $SRC_DIR/core/src/cell.rs:LL:COL 26note: required because it appears within the type `RefCell<i32>` 27 --> $SRC_DIR/core/src/cell.rs:LL:COL 28 = note: required for `*mut RefCell<i32>` to implement `UnwindSafe` 29note: required by a bound in `assert` 30 --> $DIR/not-panic-safe-6.rs:6:14 31 | 32LL | fn assert<T: UnwindSafe + ?Sized>() {} 33 | ^^^^^^^^^^ required by this bound in `assert` 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0277`.