Detect attempt to use '...' for struct update #102806
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.
If I try to use "functional record update syntax" (aka "struct update syntax") with three dots instead of two, the compiler could emit a clearer error message.
Given the following code (playground):
The current output is:
Ideally the output should be more inclusive about what token was expected:
and include a suggestion directing the programmer to the correct syntax:
Motivation
...
...
is more common than..
The text was updated successfully, but these errors were encountered: