summaryrefslogtreecommitdiffstats
path: root/tests/ui/not-panic/not-panic-safe-5.rs
blob: e0d37517dd469bac4a13d7d93c9e1491a9fe9c3a (plain)
1
2
3
4
5
6
7
8
9
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
}