aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/error_set_display.zig
blob: b4c911fe061d6852eb93a42d4e166becc7d3297c (plain)
1
2
3
4
5
6
7
8
9
10
11
const Set0 = error{ A, B, C, D, E, F };
const Set1 = error{ F, E, D, C, A };
comptime {
    const x = Set0.B;
    const y: Set1 = @errorCast(x);
    _ = y;
}

// error
//
// :5:21: error: 'error.B' not a member of error set 'error{A,C,D,E,F}'