mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
a5b639dc01
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
error[E0107]: associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
|
|
--> $DIR/issue-85347.rs:3:42
|
|
|
|
|
LL | type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
|
|
| ^^^ expected 1 lifetime argument
|
|
|
|
|
note: associated type defined here, with 1 lifetime parameter: `'a`
|
|
--> $DIR/issue-85347.rs:3:10
|
|
|
|
|
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>>;
|
|
| +++
|
|
|
|
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
|
|
|
|
Some errors have detailed explanations: E0107, E0229.
|
|
For more information about an error, try `rustc --explain E0107`.
|