Files
zig/test/cases/compile_errors/assign_unreachable.zig
T

12 lines
183 B
Zig

export fn f() void {
const a = return;
_ = a;
}
// error
// backend=stage2
// target=native
//
// :2:5: error: unreachable code
// :2:15: note: control flow is diverted here