]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/bound_reduction2.stderr
Update upstream source from tag 'upstream/1.60.0+dfsg1'
[rustc.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.stderr
1 error: non-defining opaque type use in defining scope
2 --> $DIR/bound_reduction2.rs:16:46
3 |
4 LL | fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
5 | ^^^^^^^^^^^^^
6 |
7 note: used non-generic type `<T as TraitWithAssoc>::Assoc` for generic parameter
8 --> $DIR/bound_reduction2.rs:9:10
9 |
10 LL | type Foo<V> = impl Trait<V>;
11 | ^
12
13 error: could not find defining uses
14 --> $DIR/bound_reduction2.rs:9:15
15 |
16 LL | type Foo<V> = impl Trait<V>;
17 | ^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20