diagnostic could be better whe using "..." instead of ".." when destructuring enum #70388
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The parsing of Rust source code to an AST
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The problem here is that we have
if let MyEnum::A(...) = e
instead ofif let MyEnum::A(..) = e
The compiler however points towards
)
in the error message instead of the superfluous.
:Fun fact: when using four dots
MyEnum::A(....)
, it correctly points at the last dot :)This issue has been assigned to @rakshith-ravi via this comment.
The text was updated successfully, but these errors were encountered: