error help suggests writing down a closure type, which would be a syntax error #91832
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: play
The current output is:
Ideally the output should look like:
Don't suggest adding
-> Map<std::slice::Iter<'_, char>, [closure@src/lib.rs:2:26: 2:31]>
if that's not going to compile.The text was updated successfully, but these errors were encountered: