]> git.lizzy.rs Git - rust.git/blob - tests/ui/not-panic/not-panic-safe.rs
Rollup merge of #106360 - estebank:remove-borrow-suggestion, r=compiler-errors
[rust.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 }