mirror of
https://github.com/ziglang/zig.git
synced 2026-12-04 02:03:13 -05:00
11 lines
172 B
Zig
11 lines
172 B
Zig
export fn foo() void {
|
|
const result: u32 = b: {
|
|
if (false) break :b 1;
|
|
};
|
|
_ = result;
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :2:28: error: expected type 'u32', found 'void'
|