Struct-style enum constructor gets misparsed as type ascription without suggestion #59962
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following program
shows the error
This is not very helpful: If I replace
E::V
by a struct constructor, it suggests adding parentheses, which is the real solution (the error is still not great, but better than this). Instead "did you meanE::V
" is leading in the totally wrong direction.The text was updated successfully, but these errors were encountered: