]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-panic/not-panic-safe-5.rs
Merge commit 'e228f0c16ea8c34794a6285bf57aab627c26b147' into libgccjit-codegen
[rust.git] / src / test / ui / not-panic / not-panic-safe-5.rs
1 #![allow(dead_code)]
2
3 use std::panic::UnwindSafe;
4 use std::cell::UnsafeCell;
5
6 fn assert<T: UnwindSafe + ?Sized>() {}
7
8 fn main() {
9     assert::<*const UnsafeCell<i32>>(); //~ ERROR E0277
10 }