diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index b0906651da803..751b5959d8bd7 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1824,6 +1824,7 @@ impl RandomAccessIterator for Enumerate where I: RandomAccessIterator { } /// An iterator with a `peek()` that returns an optional reference to the next element. +#[derive(Clone)] #[must_use = "iterator adaptors are lazy and do nothing unless consumed"] #[stable(feature = "rust1", since = "1.0.0")] pub struct Peekable where I: Iterator { diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 4b19d29330baa..f656fd4b8b9a8 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -977,7 +977,7 @@ impl fmt::Debug for RangeFull { } /// A (half-open) range which is bounded at both ends. -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq)] #[lang="range"] #[stable(feature = "rust1", since = "1.0.0")] pub struct Range { @@ -995,7 +995,7 @@ impl fmt::Debug for Range { } /// A range which is only bounded below. -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq)] #[lang="range_from"] #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom {