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
because of the recursive return type of foo (X = AndThen<FutureOk<i32>, fn(i32) -> X>). Of course without impl trait I could not have written the type in the first place.
Replace .and_then(foo) with .and_then(|x| foo(x)) fixes it, possibly because the type then becomes AndThen<FutureOk<i32>, [closure]> so the recursive part is separated into the closure type.
The text was updated successfully, but these errors were encountered:
This crashes the compiler with:
because of the recursive return type of
foo
(X = AndThen<FutureOk<i32>, fn(i32) -> X>
). Of course withoutimpl trait
I could not have written the type in the first place.Replace
.and_then(foo)
with.and_then(|x| foo(x))
fixes it, possibly because the type then becomesAndThen<FutureOk<i32>, [closure]>
so the recursive part is separated into the closure type.The text was updated successfully, but these errors were encountered: