Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
comptime_struct_field_no_init_value.zig
pretty
plain
permalink
blame
history
•
11 lines
•
193 B
1
const Foo = struct {
2
comptime b: i32,
3
};
4
export fn entry() void {
5
var f: Foo = undefined;
6
_ = &f;
7
}
8
9
// error
10
//
11
// :2:5: error: comptime field without default initialization value