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