about summary refs log tree commit diff
path: root/tests/ui/coroutine/async-gen-deduce-yield.rs
blob: f85e4a52e9b96eef757a22b6e3517c4a1f3ab807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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() {}