Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_comptime_invalid_cast.zig
pretty
plain
permalink
blame
history
•
7 lines
•
163 B
1
comptime {
2
const value: i32 = -1;
3
const unsigned: u32 = @intCast(value);
4
_ = unsigned;
5
}
6
7
// test_error=type 'u32' cannot represent integer value '-1'