Closure signature not mentioned on mismatch with fn ptr #119266
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Uh oh!
There was an error while loading. Please reload this page.
Code
Current output
Desired output
Rationale and extra context
Here it's obvious, but when the error says that it is mismatched with
for<'tcx> fn(context::TyCtxt<'tcx>, rustc_span::def_id::LocalDefId) -> &'tcx rustc_data_structures::unord::UnordSet<rustc_span::Symbol>
and that "types differ in mutability" then I have zero chance of figuring what's going on.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: