| 1 | var rt_slice: []const u8 = &.{ 1, 2, 3 }; |
| 2 | |
| 3 | export fn foo() void { |
| 4 | inline for (rt_slice) |_| {} |
| 5 | } |
| 6 | |
| 7 | export fn bar() void { |
| 8 | inline while (rt_slice.len == 0) {} |
| 9 | } |
| 10 | |
| 11 | // error |
| 12 | // |
| 13 | // :4:17: error: unable to resolve comptime value |
| 14 | // :4:17: note: inline loop condition must be comptime-known |
| 15 | // :8:32: error: unable to resolve comptime value |
| 16 | // :8:32: note: inline loop condition must be comptime-known |