diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/not-panic/not-panic-safe-5.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/not-panic/not-panic-safe-5.rs b/src/test/ui/not-panic/not-panic-safe-5.rs new file mode 100644 index 000000000..e0d37517d --- /dev/null +++ b/src/test/ui/not-panic/not-panic-safe-5.rs @@ -0,0 +1,10 @@ +#![allow(dead_code)] + +use std::panic::UnwindSafe; +use std::cell::UnsafeCell; + +fn assert<T: UnwindSafe + ?Sized>() {} + +fn main() { + assert::<*const UnsafeCell<i32>>(); //~ ERROR E0277 +} |