"this closure does not fulfill the lifetime requirements" could be more helpful #102877
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.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5ac285a480fc6ac1d4eb482768a4cec7
The current output is:
Ideally it should suggest naming the closure argument type:
Or it could say something else? I'm not sure what would make more sense, but this error isn't great.
The text was updated successfully, but these errors were encountered: