Confusing span in FnMut
closure diagnostic
#66097
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
F-unboxed_closures
`#![feature(unboxed_closures)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is confusing, as it appears to suggest the user change the closure to "accept closures". The span is incorrect: we should use the span of the function
to_fn
, not the span of the closure.The text was updated successfully, but these errors were encountered: