| 1 | export fn foo() void { |
| 2 | var x: [10]u8 = undefined; |
| 3 | const y = &x; |
| 4 | const z = y + 1; |
| 5 | _ = z; |
| 6 | } |
| 7 | |
| 8 | // error |
| 9 | // |
| 10 | // :4:17: error: incompatible types: '*[10]u8' and 'comptime_int' |
| 11 | // :4:15: note: type '*[10]u8' here |
| 12 | // :4:19: note: type 'comptime_int' here |