Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
overflow_in_enum_value_allocation.zig
pretty
plain
permalink
blame
history
•
12 lines
•
192 B
1
const Moo = enum(u8) {
2
Last = 255,
3
Over,
4
};
5
pub export fn entry() void {
6
const y = Moo.Last;
7
_ = y;
8
}
9
10
// error
11
//
12
// :3:5: error: enum tag value '256' too large for type 'u8'