Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
invalid_coercion_in_labeled_break.zig
pretty
plain
permalink
blame
history
•
10 lines
•
193 B
1
export fn invalidBreak() u8 {
2
const result: u8 = label: {
3
break :label 256;
4
};
5
return result;
6
}
7
8
// error
9
//
10
// :3:22: error: type 'u8' cannot represent integer value '256'