1 #![feature(untagged_unions)]
4 a: A, //~ ERROR unions may not contain fields that need dropping
11 fn drop(&mut self) { println!("A"); }
17 fn drop(&mut self) { println!("B"); }
21 let mut test = Test { a: A(3) };
22 println!("{:?}", unsafe { test.b });
23 unsafe { test.b = B(0.5); }