]> git.proxmox.com Git - rustc.git/blob - tests/ui/not-panic/not-panic-safe-6.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / not-panic / not-panic-safe-6.rs
1 #![allow(dead_code)]
2
3 use std::panic::UnwindSafe;
4 use std::cell::RefCell;
5
6 fn assert<T: UnwindSafe + ?Sized>() {}
7
8 fn main() {
9 assert::<*mut RefCell<i32>>();
10 //~^ ERROR the type `UnsafeCell<i32>` may contain interior mutability and a
11 //~| ERROR the type `UnsafeCell<isize>` may contain interior mutability and a
12 }