]>
Commit | Line | Data |
---|---|---|
9cc50fc6 | 1 | #![allow(dead_code)] |
85aaf69f | 2 | |
54a0048b | 3 | use std::panic::UnwindSafe; |
9cc50fc6 | 4 | |
54a0048b | 5 | fn assert<T: UnwindSafe + ?Sized>() {} |
9cc50fc6 SL |
6 | |
7 | fn main() { | |
8faf50e0 XL |
8 | assert::<&mut i32>(); |
9 | //~^ ERROR the type `&mut i32` may not be safely transferred across an unwind boundary | |
c34b1796 | 10 | } |