]> git.proxmox.com Git - rustc.git/blame - src/test/ui/not-panic/not-panic-safe-2.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / not-panic / not-panic-safe-2.rs
CommitLineData
9cc50fc6 1#![allow(dead_code)]
85aaf69f 2
3157f602 3use std::panic::UnwindSafe;
9cc50fc6
SL
4use std::rc::Rc;
5use std::cell::RefCell;
62682a34 6
3157f602 7fn assert<T: UnwindSafe + ?Sized>() {}
62682a34 8
9cc50fc6 9fn main() {
a7813a04 10 assert::<Rc<RefCell<i32>>>();
1b1a35ee
XL
11 //~^ ERROR the type `UnsafeCell<i32>` may contain interior mutability and a
12 //~| ERROR the type `UnsafeCell<isize>` may contain interior mutability and a
62682a34 13}