Assigning the wrong fn type to a variable mentions 'pointer' vs 'item' #127263
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
Current output
Desired output
Rationale and extra context
The current version is not wrong, but it is a bit confusing when one does not know the way rustc handles
fn
stuff.I think that leading with what is not matching up would make it easier to see one's error. Especially in context for example of RA, where in-line errors only show the 'main' message.
Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: