You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the second case the added : [_; _] adds very little information, at best it just states it's an array. I think Rustc could perform this little step and accept the "spam" case too.
The text was updated successfully, but these errors were encountered:
Possible dup of #76342 where it was pointed out that references are also possible: the spam closure could also validly type as &[T; 9] -> [&T; 9]. It's always unclear to me when closures can care about things after themselves, to pick up call here that would disambiguate the rest of the way.
I'm going to close this as a duplicate of #76342; I think they have the same cause, that [a,b,c,d,e,f,g,h,i] could be inferred as either an array or a slice.
A type inference problem:
In the second case the added : [_; _] adds very little information, at best it just states it's an array. I think Rustc could perform this little step and accept the "spam" case too.
The text was updated successfully, but these errors were encountered: