Explain why fn pointers for different fn items are different types #73487
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given
The compiler should explain why
foo
andbar
are not the same type and should suggest first changingx
's type tofn() -> ()
.taken from https://twitter.com/ekuber/status/1273753857542111237
The text was updated successfully, but these errors were encountered: