Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
reified_enum_field_value_overflow.zig
pretty
plain
permalink
blame
history
•
8 lines
•
176 B
1
comptime {
2
const E = @Enum(u1, .exhaustive, &.{ "f0", "f1", "f2" }, &.{ 0, 1, 2 });
3
_ = E;
4
}
5
6
// error
7
//
8
// :2:72: error: type 'u1' cannot represent integer value '2'