Confusing 'type mismatch' error when using function pointer as fn trait #73457
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
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.
Uh oh!
There was an error while loading. Please reload this page.
The following code:
gives this error:
There are several issues with this error:
for<>
binders, the weird{make_it}
syntax for function pointers, and an inference variable).T
a 'bound', even though it's clearly not a bound.make_it
, even though it's part of the issue.This was minimized from code posted by @rvolosatovs.
The text was updated successfully, but these errors were encountered: