mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
20 lines
280 B
Rust
20 lines
280 B
Rust
// 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() {}
|