]>
Commit | Line | Data |
---|---|---|
fc512014 | 1 | error[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 | | |
4 | LL | fn some_method(&self, arg: I::A); | |
c295e0f8 XL |
5 | | ^^^^ |
6 | | | |
7 | help: use a fully qualified path with inferred lifetimes | |
8 | | | |
9 | LL | fn some_method(&self, arg: <I as Foo<&isize>>::A); | |
10 | | ~~~~~~~~~~~~~~~~~~~~ | |
b7449926 | 11 | |
fc512014 | 12 | error[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 | | | |
15 | LL | fn mango(&self) -> X::Assoc { | |
c295e0f8 XL |
16 | | ^^^^^^^^ |
17 | | | |
18 | help: use a fully qualified path with inferred lifetimes | |
19 | | | |
20 | LL | fn mango(&self) -> <X as Banana<'_>>::Assoc { | |
21 | | ~~~~~~~~~~~~~~~~~~~ | |
74b04a01 XL |
22 | |
23 | error: aborting due to 2 previous errors | |
b7449926 | 24 | |
fc512014 | 25 | For more information about this error, try `rustc --explain E0212`. |