diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index c2a9b8c8308cd..9affab43f4645 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1001,7 +1001,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 { @@ -1021,7 +1021,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 {