mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
15 lines
264 B
Rust
15 lines
264 B
Rust
|
// 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() {}
|