2015-08-31 10:51:53 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2016-05-24 16:24:44 -05:00
|
|
|
use std::panic::UnwindSafe;
|
2015-08-31 10:51:53 -05:00
|
|
|
use std::cell::RefCell;
|
|
|
|
|
2016-05-24 16:24:44 -05:00
|
|
|
fn assert<T: UnwindSafe + ?Sized>() {}
|
2015-08-31 10:51:53 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-05-05 04:31:45 -05:00
|
|
|
assert::<*mut RefCell<i32>>();
|
2020-09-02 02:40:56 -05:00
|
|
|
//~^ ERROR the type `UnsafeCell<i32>` may contain interior mutability and a
|
|
|
|
//~| ERROR the type `UnsafeCell<isize>` may contain interior mutability and a
|
2015-08-31 10:51:53 -05:00
|
|
|
}
|