mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 01:04:43 +01:00
7 lines
171 B
Zig
7 lines
171 B
Zig
comptime {
|
|
const spartan_count: u16 = 300;
|
|
const byte: u8 = @intCast(spartan_count);
|
|
_ = byte;
|
|
}
|
|
|
|
// test_error=type 'u8' cannot represent integer value '300'
|