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

// error
// backend=stage2
// target=native
//
// :2:5: error: unbounded for loop