aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/reified_enum_field_value_overflow.zig
blob: ded9acd40d4762c024fad2d79a13bf6c30f20313 (plain)
1
2
3
4
5
6
7
8
comptime {
    const E = @Enum(u1, .exhaustive, &.{ "f0", "f1", "f2" }, &.{ 0, 1, 2 });
    _ = E;
}

// error
//
// :2:72: error: type 'u1' cannot represent integer value '2'