2 a: A, //~ ERROR unions cannot contain fields that may need dropping
9 fn drop(&mut self) { println!("A"); }
15 fn drop(&mut self) { println!("B"); }
19 let mut test = Test { a: A(3) };
20 println!("{:?}", unsafe { test.b });
21 unsafe { test.b = B(0.5); }