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

#write test.zig {
export fn entry() void {
    const U = union(enum) { a: void };
    const f: U = @import("simple_union.zon");
    _ = f;
}
#}
#write simple_union.zon ".{ .a = 10 }"
#update
#check errors {
simple_union.zon:1:9: error: expected type 'void'
test.zig:3:26: note: imported here
#}
