]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/not_well_formed.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / not_well_formed.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {}
4
5 trait TraitWithAssoc {
6     type Assoc;
7 }
8
9 type Foo<V> = impl Trait<V::Assoc>; //~ associated type `Assoc` not found for `V`
10
11 trait Trait<U> {}
12
13 impl<W> Trait<W> for () {}
14
15 fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T> {
16     ()
17 }