rust/tests/ui/async-await/normalize-output-in-signatu...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
335 B
Rust
Raw Normal View History

//@ edition:2021
//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
2023-12-14 20:11:28 +08:00
//@[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() {}