mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 00:52:52 +00: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'
|