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
This is a dupe of #20347. The fix is to write the type Item = ...; part of implementations of Iterator. That is, impl Iterator<X> for ... { becomes impl Iterator for ... { type Item = X;.
Thanks for filing!
(BTW, tangentially, you can't pass unboxed closures as f: FnMut(). The Fn* names are traits and should either be used as trait object, f: &mut FnMut(T) -> U or as generics: fn map<U, F: FnMut(T) -> U>(self, f: F). Also, since you're only calling the closures once, FnOnce will give slightly more flexibility.)
My code is certainly broken, but it triggered an ICE. Apologies if this is a duplicate! If the triggering code is useful, I've pushed a branch with the triggering material: https://github.com/spacejam/rust-rocksdb/tree/tan_ICE
The text was updated successfully, but these errors were encountered: