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

#write test.zig {
const E = enum(@compileError("enum")) {
    x = 0,
};

const U = union(enum(@compileError("union"))) {
    x = 0,
};

const S = packed struct(@compileError("struct")) {
    x: u8 = 0,
};

comptime {
    _ = &E.x;
}

comptime {
    _ = &U.x;
}

comptime {
    _ = &S{};
}
#}
#update
#check errors {
test.zig:1:16: error: enum
test.zig:5:22: error: union
test.zig:9:25: error: struct
#}
