Add note on attempts of using Self
as a normal generic arg
#89985
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=53b02445623677643befa3e7dbe0f3b4
The current output is:
The diagnostic itself is right but confusing; it lacks why
Self
is a reserved keyword (IIUC it's becauseSelf
is special-cased to represent traits or ADTs in its implementations).The text was updated successfully, but these errors were encountered: