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::UnsafeCell;
|
|
|
|
|
2016-05-24 16:24:44 -05:00
|
|
|
fn assert<T: UnwindSafe + ?Sized>() {}
|
2015-08-31 10:51:53 -05:00
|
|
|
|
|
|
|
fn main() {
|
2016-03-29 12:12:31 -05:00
|
|
|
assert::<*const UnsafeCell<i32>>(); //~ ERROR E0277
|
2015-08-31 10:51:53 -05:00
|
|
|
}
|