mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
15 lines
247 B
Rust
15 lines
247 B
Rust
//@ compile-flags: --edition 2024
|
|
//@ check-pass
|
|
|
|
#![feature(async_iterator, gen_blocks)]
|
|
|
|
use std::async_iter::AsyncIterator;
|
|
|
|
fn deduce() -> impl AsyncIterator<Item = ()> {
|
|
async gen {
|
|
yield Default::default();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|