E0277 shows invalid help in closures #111932
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Notice how the last 2 suggestions aren't valid in such a closure:
Desired output
The suggestions given in
help
should help me get closer to fixing the error, or at least not have invalid syntax.Rationale and extra context
No response
Other cases
No response
Anything else?
Output of
rustc -V
:rustc 1.71.0-nightly (2c41369ac 2023-05-13)
The text was updated successfully, but these errors were encountered: