#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const S1 = struct {
    a: S2,
};
const S2 = struct {
    b: fn () void,
};
export fn entry() void {
    var s: S1 = undefined;
    _ = &s;
}
#}
#update
#check errors {
test.zig:8:12: error: variable of type 'test.S1' must be const or comptime
test.zig:2:8: note: struct requires comptime because of this field
test.zig:5:8: note: struct requires comptime because of this field
test.zig:5:8: note: use '*const fn () void' for a function pointer type
#}
