2024-11-28 09:47:37 -08:00
|
|
|
//@ compile-flags: --edition 2024
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2023-12-12 20:08:34 +00:00
|
|
|
|
|
|
|
|
#![feature(async_iterator, gen_blocks)]
|
|
|
|
|
|
|
|
|
|
use std::async_iter::AsyncIterator;
|
|
|
|
|
|
|
|
|
|
fn deduce() -> impl AsyncIterator<Item = ()> {
|
|
|
|
|
async gen {
|
|
|
|
|
yield Default::default();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|