rustc confuses missing types with missing type parameters #139999
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
Type parameters are rarely this long, so rustc's guess seems like a poor fit. Could rustc treat longer names as unlikely to be type parameters?
Another option would be to skip this suggestion if the type name is CamelCase.
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: