aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/for_unbounded.zig
blob: a356f92d71ba19fd787bdd366cac83566f288f36 (plain)
1
2
3
4
5
6
7
8
9
export fn b() void {
    for (0..) |i| {
        _ = i;
    }
}

// error
//
// :2:5: error: unbounded for loop