summaryrefslogtreecommitdiffstats
path: root/tests/ui/not-panic/not-panic-safe.rs
blob: 1b3c6482ce94fab0607258c3e24d96aa8caf48dc (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(dead_code)]

use std::panic::UnwindSafe;

fn assert<T: UnwindSafe + ?Sized>() {}

fn main() {
    assert::<&mut &mut &i32>();
    //~^ ERROR the type `&mut &mut &i32` may not be safely transferred across an unwind boundary
}