1 2 3 4 5 6 7 8 9 10 11 12 13 14
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