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::sync::Arc;
|
|
|
|
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::<Arc<RefCell<i32>>>();
|
2018-06-09 18:53:36 -05:00
|
|
|
//~^ ERROR the type `std::cell::UnsafeCell<i32>` may contain interior mutability and a
|
2018-06-27 02:07:18 -05:00
|
|
|
//~| ERROR the type `std::cell::UnsafeCell<isize>` may contain interior mutability and a
|
2015-08-31 10:51:53 -05:00
|
|
|
}
|