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