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