]> 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.43.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-project-from-hrtb-in-trait-method.stderr
CommitLineData
b7449926 1error[E0212]: cannot extract an associated type from a higher-ranked trait bound in this context
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);
74b04a01 5 | ^^^^ help: use a fully qualified path with inferred lifetimes: `<I as Foo<&isize>>::A`
b7449926 6
74b04a01
XL
7error[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 |
10LL | fn mango(&self) -> X::Assoc {
11 | ^^^^^^^^ help: use a fully qualified path with inferred lifetimes: `<X as Banana<'_>>::Assoc`
12
13error: aborting due to 2 previous errors
b7449926 14