mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
7 lines
163 B
Zig
7 lines
163 B
Zig
comptime {
|
|
const value: i32 = -1;
|
|
const unsigned: u32 = @intCast(value);
|
|
_ = unsigned;
|
|
}
|
|
|
|
// test_error=type 'u32' cannot represent integer value '-1'
|