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

#write test.zig {
const S = struct {
    a: u32,
    b: comptime_int,
    fn init() S {
        return .{ .a = 1 };
    }
};
comptime {
    _ = S.init();
}
#}
#update
#check errors {
test.zig:5:17: error: missing struct field: b
test.zig:1:11: note: struct declared here
test.zig:9:15: note: called at comptime here
#}
