The meaning of an "item" in E0121 should be elaborated on #86005
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
I tried this code:
I expected to see this happen: an error which explains why this doesn't work with
const
even though it does work withlet
, like what would happen with the code:Instead, this happened: E0121, which doesn't explain that the problem is that const's need to be explicitly typed, but instead refers to an "item signature", which is an unexplained term of art. The explanation in
rustc --explain E0121
does not elaborate on what an "item signature" means either.Meta
rustc --version --verbose
:Occurs on 1.52.1 stable and on 1.54.0 nightly.
The text was updated successfully, but these errors were encountered: