2023-08-16 16:28:00 -05:00
|
|
|
//@ edition:2021
|
|
|
|
//@ revisions: current next
|
2024-03-10 20:18:41 -05:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 06:11:28 -06:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-08-16 16:28:00 -05:00
|
|
|
//@ 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() {}
|