mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
8 lines
163 B
Zig
8 lines
163 B
Zig
comptime {
|
|
const value: i32 = -1;
|
|
const unsigned: u32 = @intCast(value);
|
|
_ = unsigned;
|
|
}
|
|
|
|
// test_error=type 'u32' cannot represent integer value '-1'
|