summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-78722.rs
blob: bdbd20f9d2b884d500e152aee0cb66e2d947ebe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// edition:2018

#![feature(type_alias_impl_trait)]

type F = impl core::future::Future<Output = u8>;

struct Bug {
    V1: [(); {
        fn concrete_use() -> F {
            async {}
        }
        let f: F = async { 1 };
        //~^ ERROR mismatched types [E0308]
        1
    }],
}

fn main() {}