mirror of
https://git.proxmox.com/git/rustc
synced 2025-06-27 10:37:13 +00:00
11 lines
234 B
Rust
11 lines
234 B
Rust
#![allow(dead_code)]
|
|
|
|
use std::panic::UnwindSafe;
|
|
|
|
fn assert<T: UnwindSafe + ?Sized>() {}
|
|
|
|
fn main() {
|
|
assert::<&mut &mut &i32>();
|
|
//~^ ERROR the type `&mut &mut &i32` may not be safely transferred across an unwind boundary
|
|
}
|