Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
unreachable_code-double_break.zig
pretty
plain
permalink
blame
history
•
11 lines
•
197 B
1
export fn a() void {
2
const b = blk: {
3
break :blk break :blk @as(u32, 1);
4
};
5
_ = b;
6
}
7
8
// error
9
//
10
// :3:9: error: unreachable code
11
// :3:20: note: control flow is diverted here