]> git.lizzy.rs Git - rust.git/blob - src/test/ui/not-panic/not-panic-safe.rs
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / 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 i32>();
9     //~^ ERROR the type `&mut i32` may not be safely transferred across an unwind boundary
10 }