rust/tests/ui/async-await/normalize-output-in-signature-deduction.rs
2023-12-14 15:22:37 +01:00

20 lines
274 B
Rust

// 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<T> = impl Trait;
async fn foo<T>() -> TAIT<T> {
Foo
}
fn main() {}