diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 39f27bd47ba4..5e1210b2ff9b 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1669,7 +1669,7 @@ impl> RangeTo { /// assert_eq!(arr[1...2], [ 1,2 ]); // RangeInclusive /// } /// ``` -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186 #[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")] pub enum RangeInclusive { /// Empty range (iteration has finished)