master
1const A = struct {
2 x: i32,
3 y: i32,
4 z: i32,
5};
6export fn f() void {
7 const a = A{
8 .z = 1,
9 .y = 2,
10 .x = 3,
11 .z = 4,
12 };
13 _ = a;
14}
15
16// error
17//
18// :8:10: error: duplicate struct field name
19// :11:10: note: duplicate name here
20// :7:16: note: struct declared here