master
 1const A = struct {
 2    x: i32,
 3    y: i32,
 4    z: i32,
 5};
 6export fn f() void {
 7    // we want the error on the '{' not the 'A' because
 8    // the A could be a complicated expression
 9    const a = A{
10        .z = 4,
11        .y = 2,
12    };
13    _ = a;
14}
15
16const B = struct { u32, u32 };
17export fn g() void {
18    const b = B{0};
19    _ = b;
20}
21export fn h() void {
22    const c = B{};
23    _ = c;
24}
25// error
26//
27// :9:16: error: missing struct field: x
28// :1:11: note: struct declared here
29// :18:16: error: missing tuple field with index 1
30// :22:16: error: missing tuple field with index 0
31// :22:16: note: missing tuple field with index 1