| 1 | export fn foo() void { |
| 2 | const S = struct { |
| 3 | fn doTheTest() void { |
| 4 | blk: switch (@as(u8, 'a')) { |
| 5 | '1' => |_| continue :blk '1', |
| 6 | else => {}, |
| 7 | } |
| 8 | } |
| 9 | }; |
| 10 | S.doTheTest(); |
| 11 | comptime S.doTheTest(); |
| 12 | } |
| 13 | |
| 14 | // error |
| 15 | // |
| 16 | // :5:25: error: discard of capture; omit it instead |