Unsufficient report when encountering a mismatch between fn pointer and fn item #106652
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.
Hello world. Here is an example of code;
Here is the output:
The issue with this output is that, for a newbie, it is very mysterious, it doesn't help to know what exactly is wrong or at least how to fix it.
The compiler should print a hint like: "try
test as fn()
".Thanks in advance !
The text was updated successfully, but these errors were encountered: