summary refs log tree commit diff
path: root/tests/ui/coroutine/async-gen-deduce-yield.rs
blob: aee920e97737928eef282af74ae7daaf4f582a4c (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() {}