aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/for_discard_unbounded.zig
blob: 93434d0c219ed8c11aceebb8b4fc8495a6ef45b2 (plain)
1
2
3
4
5
6
7
8
9
10
export fn a() void {
    for (0..10, 10..) |i, _| {
        _ = i;
    }
}
// error
// backend=stage2
// target=native
//
// :2:27: error: discard of unbounded counter