zig/test/cases/unused_labels.2.zig

8 lines
92 B
Zig

comptime {
foo: for ("foo") |_| {}
}
// error
//
// :2:5: error: unused for loop label