Files
zig/test/cases/compile_errors/suspend_inside_suspend_block.zig
2023-06-19 12:34:42 -07:00

16 lines
243 B
Zig

export fn entry() void {
_ = async foo();
}
fn foo() void {
suspend {
suspend {}
}
}
// error
// backend=llvm
// target=native
//
// :6:9: error: cannot suspend inside suspend block
// :5:5: note: other suspend block here