diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index c382ac46d5db9..a0bee5690a329 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(Clone, PartialEq, Eq)] +#[derive(Copy, 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(Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq)] #[lang="range_from"] #[stable(feature = "rust1", since = "1.0.0")] pub struct RangeFrom {