master
 1const A = struct { x: i32 };
 2export fn f() void {
 3    var a: A = undefined;
 4    a.foo = 1;
 5    const y = a.bar;
 6    _ = y;
 7}
 8export fn g() void {
 9    var a: A = undefined;
10    const y = a.bar;
11    _ = &a;
12    _ = y;
13}
14export fn e() void {
15    const B = struct {
16        fn f() void {}
17    };
18    const b: B = undefined;
19    @import("std").debug.print("{}{}", .{ b.f, b.f });
20}
21
22// error
23//
24// :4:7: error: no field named 'foo' in struct 'tmp.A'
25// :1:11: note: struct declared here
26// :10:17: error: no field named 'bar' in struct 'tmp.A'
27// :1:11: note: struct declared here
28// :19:45: error: no field named 'f' in struct 'tmp.e.B'
29// :15:15: note: struct declared here