Files
zig/test/cases/compile_errors/tuple_in_extern_context.zig
T
2026-04-08 15:22:48 +02:00

13 lines
243 B
Zig

const S = extern struct {
f: struct { u32 },
};
comptime {
_ = @sizeOf(S);
}
// error
//
// :2:8: error: extern structs cannot contain fields of type 'struct { u32 }'
// :2:8: note: tuples have no guaranteed in-memory representation