Closed
Description
Code
I'm having trouble creating a concise example, but perhaps the error below is enough. If the error at least mentioned turbofish it'd have saved a bunch of heartache for a noob.
Current output
error: expected one of `)`, `,`, `@`, or `|`, found `<`
--> ....
|
143 | Ok(SomeEnum<STRICT>::SomeVariant { result, .. }) => { ... },
| ^
| |
| expected one of `)`, `,`, `@`, or `|`
| help: missing `,`
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
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTRelating to patterns and pattern matchingDiagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: An error or lint that needs small tweaks.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Relevant to the compiler team, which will review and decide on the PR/issue.