aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/empty_switch_on_an_integer.zig
blob: 79f36b9cc98979a658eed858521fe883b10139ec (plain)
1
2
3
4
5
6
7
8
export fn entry() void {
    const x: u32 = 0;
    switch (x) {}
}

// error
//
// :3:5: error: switch must handle all possibilities