aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/comptime_continue_inside_runtime_catch.zig
blob: 72466b5a03101c1ca8dd8cdd57193b17c1052c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export fn entry() void {
    const ints = [_]u8{ 1, 2 };
    inline for (ints) |_| {
        bad() catch continue;
    }
}
fn bad() !void {
    return error.Bad;
}

// error
//
// :4:21: error: comptime control flow inside runtime block
// :4:15: note: runtime control flow here