1 use core::mem::ManuallyDrop;
7 impl Drop for TypeWithDrop {
9 unreachable!("Should not get dropped");
13 let x = ManuallyDrop::new(TypeWithDrop);
17 let x: Box<ManuallyDrop<[TypeWithDrop]>> =
18 Box::new(ManuallyDrop::new([TypeWithDrop, TypeWithDrop]));
21 // test clone and clone_from implementations
22 let mut x = ManuallyDrop::new(TypeWithDrop);