aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/for_extra_capture.zig
blob: fed58d27d087e3e785ec28f3d688f7a32d70b4b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// zig fmt: off
export fn b() void {
    for (0..10) |i, j| {
        _ = i;
        _ = j;
    }
}
// zig fmt: on

// error
//
// :3:21: error: extra capture in for loop