diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 5df64cfaadaa..fcf46b81a57a 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -967,10 +967,9 @@ pub trait IteratorExt: Iterator + Sized { /// Creates an iterator that clones the elements it yields. Useful for converting an /// Iterator<&T> to an Iterator. #[unstable(feature = "core", reason = "recent addition")] - fn cloned(self) -> Cloned where - Self: Iterator, - D: Deref, - T: Clone, + fn cloned(self) -> Cloned where + Self::Item: Deref, + ::Output: Clone, { Cloned { it: self } }