Can't infer the type of index #26735
Labels
A-closures
Area: Closures (`|…| { … }`)
A-inference
Area: Type inference
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
This doesn't type-check
failing with
Annotating as
usize
fixes it, but I would expect the compiler to be able to infer the type. Is there a reason why it can't?The text was updated successfully, but these errors were encountered: