aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/suspend_inside_suspend_block.zig
blob: 80436bd07f7f97d5c01dcd34202faa9370705ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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