Confusing errors for call_method(arg_name: value)
when value
is not a literal
#105810
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.
Given the following code:
Playground
The current output is:
Ideally the output should look like it does when
value
is a literal, like an integer, float, or string literalDiagnostics reproduce on all of current stable, beta, and nightly:
Stable 1.66.0
Beta 1.67.0-beta.2
Nightly 1.68.0 2022-12-15
The text was updated successfully, but these errors were encountered: