master
 1const Foo = struct {
 2    a: u32,
 3    b: f32,
 4};
 5const Payload = packed union {
 6    A: Foo,
 7    B: bool,
 8};
 9export fn entry() void {
10    const a: Payload = .{ .B = true };
11    _ = a;
12}
13
14// error
15//
16// :6:8: error: packed unions cannot contain fields of type 'tmp.Foo'
17// :6:8: note: only packed structs layout are allowed in packed types
18// :1:13: note: struct declared here