//@ edition:2021 //@ revisions: current next //@[next] compile-flags: -Znext-solver //@ check-pass #![feature(type_alias_impl_trait)] struct Foo; impl Trait for Foo {} pub trait Trait {} pub type TAIT = impl Trait; async fn foo() -> TAIT { Foo } fn main() {}