Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
switch_on_non_err_union.zig
pretty
plain
permalink
blame
history
•
9 lines
•
157 B
1
pub fn main() void {
2
false catch |err| switch (err) {
3
else => {},
4
};
5
}
6
7
// error
8
//
9
// :2:11: error: expected error union type, found 'bool'