fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied 2 --> $DIR/issue-85347.rs:3:42 3 | 4LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>; 5 | ^^^ expected 1 lifetime argument 6 | 7note: associated type defined here, with 1 lifetime parameter: `'a` 8 --> $DIR/issue-85347.rs:3:10 9 | 10LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>; 11 | ^^^ -- 12help: add missing lifetime argument 13 | 14LL | type Bar<'a>: Deref<Target = <Self>::Bar<'a, Target = Self>>; 15 | +++ 16 17error[E0229]: associated type bindings are not allowed here 18 --> $DIR/issue-85347.rs:3:46 19 | 20LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>; 21 | ^^^^^^^^^^^^^ associated type not allowed here 22 23error: aborting due to 2 previous errors 24 25Some errors have detailed explanations: E0107, E0229. 26For more information about an error, try `rustc --explain E0107`.