mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
11 lines
218 B
Zig
11 lines
218 B
Zig
export fn a() void {
|
|
const x: ?u8 = 256;
|
|
_ = x;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// 2:20: error: expected type '?u8', found 'comptime_int'
|
|
// 2:20: note: type 'u8' cannot represent value '256'
|