]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-trait-method.stderr
CommitLineData
fc512014 1error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
74b04a01 2 --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:13:32
b7449926
XL
3 |
4LL | fn some_method(&self, arg: I::A);
c295e0f8
XL
5 | ^^^^
6 |
7help: use a fully qualified path with inferred lifetimes
8 |
9LL | fn some_method(&self, arg: <I as Foo<&isize>>::A);
10 | ~~~~~~~~~~~~~~~~~~~~
b7449926 11
fc512014 12error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
74b04a01
XL
13 --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:32:24
14 |
15LL | fn mango(&self) -> X::Assoc {
c295e0f8
XL
16 | ^^^^^^^^
17 |
18help: use a fully qualified path with inferred lifetimes
19 |
20LL | fn mango(&self) -> <X as Banana<'_>>::Assoc {
21 | ~~~~~~~~~~~~~~~~~~~
74b04a01
XL
22
23error: aborting due to 2 previous errors
b7449926 24
fc512014 25For more information about this error, try `rustc --explain E0212`.