aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/non-exhaustive_enum_field_non_final.zig
blob: b6bfbfa36b8af87a01d2f40aa46bbc3ed2862745 (plain)
1
2
3
4
5
6
7
8
9
const B = enum(u1) {
    a,
    _,
    b,
};

// error
//
// :3:5: error: '_' field of non-exhaustive enum must be last