Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
coercion_to_error_union.zig
pretty
plain
permalink
blame
history
•
9 lines
•
199 B
1
export fn b() void {
2
const x: anyerror!u8 = 256;
3
_ = x;
4
}
5
6
// error
7
//
8
// 2:28: error: expected type 'anyerror!u8', found 'comptime_int'
9
// 2:28: note: type 'u8' cannot represent value '256'