--> $DIR/not-panic-safe-6.rs:9:5
|
LL | fn assert<T: UnwindSafe + ?Sized>() {}
- | ------ ---------- required by this bound in `assert`
+ | ---------- required by this bound in `assert`
...
LL | assert::<*mut RefCell<i32>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::cell::UnsafeCell<i32>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
--> $DIR/not-panic-safe-6.rs:9:5
|
LL | fn assert<T: UnwindSafe + ?Sized>() {}
- | ------ ---------- required by this bound in `assert`
+ | ---------- required by this bound in `assert`
...
LL | assert::<*mut RefCell<i32>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `std::cell::UnsafeCell<isize>` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary