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