mirror of
https://github.com/ziglang/zig.git
synced 2026-12-06 02:18:48 -05:00
16 lines
243 B
Zig
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
|