Nonsensical diagnostic when returning closure #89620
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
It seems like a bug that the "expected" and "found" types are the same.
The text was updated successfully, but these errors were encountered: