]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/not-panic/not-panic-safe-2.rs
3 use std
::panic
::UnwindSafe
;
5 use std
::cell
::RefCell
;
7 fn assert
<T
: UnwindSafe
+ ?Sized
>() {}
10 assert
::<Rc
<RefCell
<i32>>>();
11 //~^ ERROR the type `UnsafeCell<i32>` may contain interior mutability and a
12 //~| ERROR the type `UnsafeCell<isize>` may contain interior mutability and a