The compiler says a type is not an iterator. The implementation already has a bound saying its dereference target is an iterator. Adding the same requirement again is a tempting way to make the error go away without understanding what changed.
Rust’s 1.100.1 release notes identify a regression in which valid iterator implementations were no longer recognized, following a change to the unstable const version of Iterator. [1] The linked report gives a particularly useful clue: the overridden nth and nth_back methods failed, while next and next_back were accepted. [2]
Unfold the type before changing the bound
The expression <Self as Deref>::Target means the associated target type supplied by this type’s Deref implementation. If Cursor<I> dereferences to I, that projection names I.
Original type-projection map. The version labels distinguish my local baseline from upstream report and release evidence. Image by Shivam Dwivedi.
Here is a small wrapper with a real stored iterator. The long return types make the projection visible rather than hiding it behind Self::Item.
use std::ops::{Deref, DerefMut}; struct Cursor<I>(I); impl<I> Deref for Cursor<I> { type Target = I; fn deref(&self) -> &I { &self.0 } } impl<I> DerefMut for Cursor<I> { fn deref_mut(&mut self) -> &mut I { &mut self.0 } } impl<I> Iterator for Cursor<I> where <Self as Deref>::Target: Iterator, { type Item = <<Self as Deref>::Target as Iterator>::Item; fn next(&mut self) -> Option<<<Self as Deref>::Target as Iterator>::Item> { self.0.next() } fn nth(&mut self, n: usize) -> Option<<<Self as Deref>::Target as Iterator>::Item> { self.0.nth(n) } } fn main() { let mut cursor = Cursor([3, 5, 7].into_iter()); assert_eq!(cursor.nth(1), Some(5)); assert_eq!(cursor.next(), Some(7)); assert_eq!(cursor.next(), None); println!("nth(1)=5, next=7, then exhausted"); } Save it as demo.rs, then compile and run it:
rustc --edition 2021 demo.rs -o demo ./demo nth(1)=5, next=7, then exhausted I compiled this illustration with rustc 1.99.1. Its assertions check skipping to the second element, reading the next element and reaching exhaustion. This is an older-baseline illustration of the type relationship. I did not run this wrapper on 1.100.0 or 1.100.1, and it is not a reproduced before/after compiler comparison.
Keep the symptom attached to the release
The issue’s original reproducer has a more involved chain of associated types and a dependency impact involving older objc2 code. Its discussion includes a smaller reproducer, a bisection and an explanation involving normalization of the compiler’s parameter environment: the assumptions available while it checks the implementation. [2][3]
That makes the diagnostic useful evidence, rather than a literal instruction to add every suggested bound. A newly failing build with unchanged source deserves a compiler-version check and a dependency check before a source workaround becomes permanent.
The release notes give a narrow repair claim. They do not establish that every associated-type normalization limitation has been solved. The discussion itself separates the stable regression from the broader trait-system problem. [1][3]
A smaller regression record is easier to trust
For an affected project, I would preserve the exact failing source, edition, dependency lockfile and compiler version. Then I would check that same input on the intended patch release. A passing unrelated iterator example would not establish that the dependency build is repaired.
That is why I keep the local output above separate from the upstream fix. The local program explains what the bound means. The upstream issue identifies the failure. The release notes identify the patch intended to address it. Each answers a different question.
References
Rust project, Rust 1.100.1 release notes.
yavor7512, Iterator regression report.
theemathas, lcnr and contributors, reproducer and trait-system discussion.
Asset credits
Original explanatory figure and example, CC BY 4.0. Credit: Shivam Dwivedi. No third-party image assets.
AI disclosure
AI was used to draft the article.

