Files
zig/test/cases/compile_errors/too_big_packed_struct.zig
2026-03-10 10:26:14 +00:00

12 lines
233 B
Zig

pub export fn entry() void {
const T = packed struct {
a: u65535,
b: u65535,
};
@compileLog(@sizeOf(T));
}
// error
//
// :2:22: error: packed struct bit width '131070' exceeds maximum bit width of 65535