Can't coerce closure to fn in a tuple #101705
Labels
A-closures
Area: Closures (`|…| { … }`)
A-coercions
Area: implicit and explicit `expr as Type` coercions
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
Produces this error:
But I think it should compile by coercing the closures to
fn
types. The following compiles:The text was updated successfully, but these errors were encountered: