]> git.proxmox.com Git - rustc.git/blob - tests/ui/not-panic/not-panic-safe.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / not-panic / not-panic-safe.rs
1 #![allow(dead_code)]
2
3 use std::panic::UnwindSafe;
4
5 fn assert<T: UnwindSafe + ?Sized>() {}
6
7 fn main() {
8 assert::<&mut &mut &i32>();
9 //~^ ERROR the type `&mut &mut &i32` may not be safely transferred across an unwind boundary
10 }