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

#write test.zig {
const U = union {
    comptime a: u32 = 1,
};
const E = enum {
    comptime a = 1,
};
const P = packed struct {
    comptime a: u32 = 1,
};
const X = extern struct {
    comptime a: u32 = 1,
};
#}
#update
#check errors {
test.zig:2:5: error: union fields cannot be marked comptime
test.zig:5:5: error: enum fields cannot be marked comptime
test.zig:8:5: error: packed struct fields cannot be marked comptime
test.zig:11:5: error: extern struct fields cannot be marked comptime
#}
