]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr
Sync rust-lang/portable-simd@5f49d4c8435a25d804b2f375e949cb25479f5be9
[rust.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-trait-method.stderr
1 error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
2   --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:13:32
3    |
4 LL |     fn some_method(&self, arg: I::A);
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    |                                ~~~~~~~~~~~~~~~~~~~~
11
12 error[E0212]: cannot use the associated type of a trait with uninferred generic parameters
13   --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:32:24
14    |
15 LL |     fn mango(&self) -> X::Assoc {
16    |                        ^^^^^^^^
17    |
18 help: use a fully qualified path with inferred lifetimes
19    |
20 LL |     fn mango(&self) -> <X as Banana<'_>>::Assoc {
21    |                        ~~~~~~~~~~~~~~~~~~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0212`.