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