blob: 9ccc8ee41f6672a828f8764fc0677a285ed9f820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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() {}
|