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 18:59:06 -06:00
// edition: 2024
// compile-flags: -Zunstable-options
2023-12-05 15:45:01 -06:00
// check-pass
2023-11-29 18:59:06 -06:00
2023-12-05 15:45:01 -06:00
#![feature(gen_blocks, async_iterator)]
2023-11-29 18:59:06 -06:00
2023-12-05 15:45:01 -06:00
async fn bar() {}
async gen fn foo() {
yield bar().await;
}
2023-11-29 18:59:06 -06:00
fn main() {}