strange errors with multiple impls of FnOnce #31560
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
If one maliciously attempts to hack function overloading into rust
then one receives appropriately inscrutable errors:
I don't understand which value rustc wants a type for, and the second error is clearly untrue. I assume this use case is not going to be supported, even if these features are stabilized, but the diagnostic is not good.
The text was updated successfully, but these errors were encountered: