1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const S = struct { foo: u32, foo: u32, }; export fn entry() void { const s: S = .{ .foo = 100 }; _ = s; } // error // // :2:5: error: duplicate struct member name 'foo' // :3:5: note: duplicate name here // :1:11: note: struct declared here