1 // revisions: mirunsafeck thirunsafeck
2 // [thirunsafeck]compile-flags: -Z thir-unsafeck
4 use std
::mem
::ManuallyDrop
;
6 #[derive(Clone)] //~ ERROR the trait bound `U1: Copy` is not satisfied
18 #[derive(Clone, Copy)]
23 #[derive(Clone, Copy)]
28 #[derive(Clone, Copy)]
30 a
: ManuallyDrop
<T
>, // OK
37 let u
= U5 { a: ManuallyDrop::new(CloneNoCopy) }
;
38 let w
= u
.clone(); //~ ERROR the method