15 lines
297 B
Zig
15 lines
297 B
Zig
export fn foo() void {
|
|
var x: [10]u8 = undefined;
|
|
const y = &x;
|
|
const z = y + 1;
|
|
_ = z;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :4:17: error: incompatible types: '*[10]u8' and 'comptime_int'
|
|
// :4:15: note: type '*[10]u8' here
|
|
// :4:19: note: type 'comptime_int' here
|