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