2015-08-31 08:51:53 -07:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
2016-05-24 14:24:44 -07:00
|
|
|
use std::panic::UnwindSafe;
|
2015-08-31 08:51:53 -07:00
|
|
|
use std::rc::Rc;
|
|
|
|
use std::cell::RefCell;
|
|
|
|
|
2016-05-24 14:24:44 -07:00
|
|
|
fn assert<T: UnwindSafe + ?Sized>() {}
|
2015-08-31 08:51:53 -07:00
|
|
|
|
|
|
|
fn main() {
|
2016-05-05 12:31:45 +03:00
|
|
|
assert::<Rc<RefCell<i32>>>();
|
2018-06-09 16:53:36 -07:00
|
|
|
//~^ ERROR the type `std::cell::UnsafeCell<i32>` may contain interior mutability and a
|
2018-06-27 00:07:18 -07:00
|
|
|
//~| ERROR the type `std::cell::UnsafeCell<isize>` may contain interior mutability and a
|
2015-08-31 08:51:53 -07:00
|
|
|
}
|