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

#write test.zig {
export fn entry() void {
    const f: struct { foo: type } = @import("type_decl.zon");
    _ = f;
}
#}
#write type_decl.zon {
.{
    .foo = struct {},
}
#}
#update
#check errors {
type_decl.zon:2:12: error: types are not available in ZON
#}
