1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
union U { a: str, //~^ ERROR the size for values of type //~| ERROR field must implement `Copy` b: u8, } union W { a: u8, b: str, //~^ ERROR the size for values of type //~| ERROR field must implement `Copy` } fn main() {}