rust/tests/ui/coroutine/async-gen-deduce-yield.rs

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

15 lines
264 B
Rust
Raw Normal View History

// compile-flags: --edition 2024 -Zunstable-options
// check-pass
#![feature(async_iterator, gen_blocks)]
use std::async_iter::AsyncIterator;
fn deduce() -> impl AsyncIterator<Item = ()> {
async gen {
yield Default::default();
}
}
fn main() {}