aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/labeled_block_implicit_value.zig
blob: ce02f6a4ef94f6dd65e18043b516f5072a5eaf42 (plain)
1
2
3
4
5
6
7
8
9
10
export fn foo() void {
    const result: u32 = b: {
        if (false) break :b 1;
    };
    _ = result;
}

// error
//
// :2:28: error: expected type 'u32', found 'void'