Don't treat tuple struct types as functions in diagnostics #114247
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
error[E0423]: expected value, found struct `A`
Rationale and extra context
Since i never defined a function, it seems odd to get errors mentioning the function signature. While the example code is pretty clean, in more complex cases this can be a very confusing message
Other cases
consider the following error a user of the Bevy game engine received and was confused by, where there is no hint of the Person struct needing to be instantiated.
Anything else?
No response
The text was updated successfully, but these errors were encountered: