Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
offsetOf-non_struct.zig
pretty
plain
permalink
blame
history
•
8 lines
•
139 B
1
const Foo = i32;
2
export fn foo() usize {
3
return @offsetOf(Foo, "a");
4
}
5
6
// error
7
//
8
// :3:22: error: expected struct type, found 'i32'