- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
I accidentally typed impl for T instead of impl T, and the diagnostic (playground) wasn't very helpful:
  |
3 | impl for T {}
  |          ^ expected `<` here
This appears to be because of this syntax:
impl for<'a> THowever it makes no sense in this case. Perhaps better diagnostics would look something like this:
  |
3 | impl for T {}
  |     ^ expected type
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints