1 #![feature(untagged_unions)]
9 a: String, //~ ERROR unions may not contain fields that need dropping
10 b: String, // OK, only one field is reported
15 // `S` doesn't implement `Drop` trait, but still has non-trivial destructor
17 a: S, //~ ERROR unions may not contain fields that need dropping
20 // We don't know if `T` is trivially-destructable or not until trans
22 a: T, //~ ERROR unions may not contain fields that need dropping
26 a: T, // OK, `T` is `Copy`, no destructor