]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-project-from-hrtb-in-trait-method.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-trait-method.stderr
1 error[E0212]: cannot extract an associated type from a higher-ranked trait bound in this context
2   --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:13:32
3    |
4 LL |     fn some_method(&self, arg: I::A);
5    |                                ^^^^ help: use a fully qualified path with inferred lifetimes: `<I as Foo<&isize>>::A`
6
7 error[E0212]: cannot extract an associated type from a higher-ranked trait bound in this context
8   --> $DIR/associated-types-project-from-hrtb-in-trait-method.rs:32:24
9    |
10 LL |     fn mango(&self) -> X::Assoc {
11    |                        ^^^^^^^^ help: use a fully qualified path with inferred lifetimes: `<X as Banana<'_>>::Assoc`
12
13 error: aborting due to 2 previous errors
14