refining_impl_trait
suggestion in invalid code
#129404
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
Desired output
Rationale and extra context
Not sure if this is worth fixing, but the warning message is not helpful here at all and the suggestion
fn prepare(self) -> impl Fn() -> {type error}
is not usable.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: