mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
17 lines
252 B
Zig
17 lines
252 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
|