mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
8 lines
171 B
Zig
8 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'
|