1 2 3 4 5 6 7 8 9 10
union U { a: i32, b: f32, c: u8, } fn main() { let u = U { a: 14 }; let _ = u.a; // { dg-error "access to union" } }