We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e76e8 commit 9e78cd7Copy full SHA for 9e78cd7
src/libcore/ops.rs
@@ -1669,7 +1669,7 @@ impl<Idx: PartialOrd<Idx>> RangeTo<Idx> {
1669
/// assert_eq!(arr[1...2], [ 1,2 ]); // RangeInclusive
1670
/// }
1671
/// ```
1672
-#[derive(Copy, Clone, PartialEq, Eq)]
+#[derive(Clone, PartialEq, Eq, Hash)] // not Copy -- see #27186
1673
#[unstable(feature = "inclusive_range", reason = "recently added, follows RFC", issue = "28237")]
1674
pub enum RangeInclusive<Idx> {
1675
/// Empty range (iteration has finished)
0 commit comments