diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs index 39bf80281c57..a04c1bc03392 100644 --- a/src/libcore/ops/range.rs +++ b/src/libcore/ops/range.rs @@ -708,9 +708,9 @@ impl Bound<&T> { /// assert_eq!((1..12).start_bound(), Included(&1)); /// assert_eq!((1..12).start_bound().cloned(), Included(1)); /// ``` - #[unstable(feature = "bound_cloned", issue = 61356)] + #[unstable(feature = "bound_cloned", issue = "61356")] fn cloned(&self) -> Bound { - match self { + match *self { Bound::Unbounded => Bound::Unbounded, Bound::Included(x) => Bound::Included(x.clone()), Bound::Excluded(x) => Bound::Excluded(x.clone()),