Nested argument mismatch could suggest moving extra parameter outside parenthesis #124691
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.
Code
playground
Current output
Desired output
Something like
Rationale and extra context
This happened while trying to pass a missing parameter to an outer function, but I had placed the extra parameter to a call inside instead. When both of the conditions are met, we can be mostly sure that the user intended to pass the parameter to the outer function instead:
Other cases
No response
Rust Version
Anything else?
The text was updated successfully, but these errors were encountered: