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

#write test.zig {
const Foo = struct {
    map: @as(i32, i32),

    fn init() Foo {
        return undefined;
    }
};
export fn entry() void {
    const rule_set = try Foo.init();
    _ = rule_set;
}
#}
#update
#check errors {
test.zig:2:19: error: expected type 'i32', found 'type'
#}
