Improper use of closures not detected #51486
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code gets "overflow evaluating the requirement
[closure@src/main.rs:20:19: 20:28]: std::ops::FnMut<(i32,)>
" if the line inmain
is uncommented.If the error should exist (which I'm unsure about), it should be detected without needing to call
map
.If not, that's a bug.
The text was updated successfully, but these errors were encountered: