Type specifiers with generic args in certain positions should generate errors that reference the turbofish #114112
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
A-patterns
Relating to patterns and pattern matching
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
" if SomeEnum<STRICT> is a type reference, use SomeEnum::<STRICT> instead"
Rationale and extra context
Rust is elsewhere good about suggesting the turbofish.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: