master
 1const Foo = struct {
 2    derp: i32,
 3};
 4export fn foo() usize {
 5    return @offsetOf(
 6        Foo,
 7        "a",
 8    );
 9}
10
11// error
12//
13// :7:9: error: no field named 'a' in struct 'tmp.Foo'
14// :1:13: note: struct declared here