#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
const E = enum {
    a,
    b,
};
export fn entry() void {
    const e: E = .b;
    switch (e) {
        .a => {},
        .b => {},
        _ => {},
    }
}
#}
#update
#check errors {
test.zig:7:5: error: '_' prong only allowed when switching on non-exhaustive enums
test.zig:10:9: note: '_' prong here
test.zig:7:5: note: consider using 'else'
#}
