mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
14 lines
239 B
Zig
14 lines
239 B
Zig
const Foo = struct {
|
|
derp: i32,
|
|
};
|
|
export fn foo() usize {
|
|
return @offsetOf(Foo, "a",);
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :5:27: error: no field named 'a' in struct 'tmp.Foo'
|
|
// :1:13: note: struct declared here
|