summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/normalize-output-in-signature-deduction.rs
blob: 960065a83a45dd980895a99ab1a4349a79037490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// edition:2021
// revisions: current next
//[next] compile-flags: -Ztrait-solver=next
// check-pass

#![feature(type_alias_impl_trait)]

struct Foo;

impl Trait for Foo {}
pub trait Trait {}

pub type TAIT<T> = impl Trait;

async fn foo<T>() -> TAIT<T> {
    Foo
}

fn main() {}