test_comptime_invalid_cast_truncate.zig (171B) - Raw
1 comptime { 2 const spartan_count: u16 = 300; 3 const byte: u8 = @intCast(spartan_count); 4 _ = byte; 5 } 6 7 // test_error=type 'u8' cannot represent integer value '300'
zigfork of https://codeberg.org/ziglang/zig | |
| Log | Files | Refs | README | LICENSE |