]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/bound_reduction2.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.rs
1 #![feature(type_alias_impl_trait)]
2
3 fn main() {
4 }
5
6 trait TraitWithAssoc {
7 type Assoc;
8 }
9
10 type Foo<V> = impl Trait<V>;
11 //~^ ERROR the trait bound `T: TraitWithAssoc` is not satisfied
12
13 trait Trait<U> {}
14
15 impl<W> Trait<W> for () {}
16
17 fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
18 ()
19 }