mirror of
https://github.com/ziglang/zig.git
synced 2026-01-02 11:33:21 +00:00
13 lines
206 B
Zig
13 lines
206 B
Zig
const builtin = @import("builtin");
|
|
|
|
test {
|
|
comptime var st = .{
|
|
.foo = &1,
|
|
.bar = &2,
|
|
};
|
|
|
|
inline for (@typeInfo(@TypeOf(st)).Struct.fields) |field| {
|
|
_ = field;
|
|
}
|
|
}
|