Type inference fail in a closure #63702
Labels
A-closures
Area: closures (`|args| { .. }`)
A-inference
Area: Type inference
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Let's have a look at two similar closures:
The first one is successfully compiled, but the second one requires additional type annotations: playground 4
It seems that there is enough information for fully automatic type inference in both cases. Is it a compilation bug then?
The text was updated successfully, but these errors were encountered: