Files
rust/tests/ui/coroutine/async_gen_fn.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
189 B
Rust
Raw Normal View History

2023-11-29 16:59:06 -08:00
// edition: 2024
// compile-flags: -Zunstable-options
2023-12-05 21:45:01 +00:00
// check-pass
2023-11-29 16:59:06 -08:00
2023-12-05 21:45:01 +00:00
#![feature(gen_blocks, async_iterator)]
2023-11-29 16:59:06 -08:00
2023-12-05 21:45:01 +00:00
async fn bar() {}
async gen fn foo() {
yield bar().await;
}
2023-11-29 16:59:06 -08:00
fn main() {}