Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
too_big_packed_struct.zig
pretty
plain
permalink
blame
history
•
11 lines
•
233 B
1
pub export fn entry() void {
2
const T = packed struct {
3
a: u65535,
4
b: u65535,
5
};
6
@compileLog(@sizeOf(T));
7
}
8
9
// error
10
//
11
// :2:22: error: packed struct bit width '131070' exceeds maximum bit width of 65535