2021-05-16 11:33:41 -05:00
|
|
|
error[E0107]: this associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
2022-05-04 09:22:19 -05:00
|
|
|
--> $DIR/issue-85347.rs:3:42
|
2021-05-16 11:33:41 -05:00
|
|
|
|
|
|
|
|
LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
|
|
|
| ^^^ expected 1 lifetime argument
|
|
|
|
|
|
|
|
|
note: associated type defined here, with 1 lifetime parameter: `'a`
|
2022-05-04 09:22:19 -05:00
|
|
|
--> $DIR/issue-85347.rs:3:10
|
2021-05-16 11:33:41 -05:00
|
|
|
|
|
|
|
|
LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
|
|
|
| ^^^ --
|
|
|
|
help: add missing lifetime argument
|
|
|
|
|
|
|
|
|
LL | type Bar<'a>: Deref<Target = <Self>::Bar<'a, Target = Self>>;
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++
|
2021-05-16 11:33:41 -05:00
|
|
|
|
2022-09-26 19:45:50 -05:00
|
|
|
error[E0229]: associated type bindings are not allowed here
|
|
|
|
--> $DIR/issue-85347.rs:3:46
|
|
|
|
|
|
|
|
|
LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
|
|
|
| ^^^^^^^^^^^^^ associated type not allowed here
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-05-16 11:33:41 -05:00
|
|
|
|
2022-09-26 19:45:50 -05:00
|
|
|
Some errors have detailed explanations: E0107, E0229.
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|