about summary refs log tree commit diff
path: root/src/libcore/ops/range.rs
diff options
context:
space:
mode:
authorChris Gregory <czipperz@gmail.com>2019-05-30 21:52:52 -0500
committerChris Gregory <czipperz@gmail.com>2019-05-30 21:52:52 -0500
commit867c4a5fdac44d683035d8eaaf69f43adffcc5ca (patch)
treee9aef7211943179f99292d42da3f634ff7d18a2d /src/libcore/ops/range.rs
parent333e1ca319636d23983de1f8ea2c102aae731c54 (diff)
downloadrust-867c4a5fdac44d683035d8eaaf69f43adffcc5ca.tar.gz
rust-867c4a5fdac44d683035d8eaaf69f43adffcc5ca.zip
Fix compilation errors
Diffstat (limited to 'src/libcore/ops/range.rs')
-rw-r--r--src/libcore/ops/range.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ops/range.rs b/src/libcore/ops/range.rs
index 39bf80281c5..a04c1bc0339 100644
--- a/src/libcore/ops/range.rs
+++ b/src/libcore/ops/range.rs
@@ -708,9 +708,9 @@ impl<T: Clone> 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<T> {
-        match self {
+        match *self {
             Bound::Unbounded => Bound::Unbounded,
             Bound::Included(x) => Bound::Included(x.clone()),
             Bound::Excluded(x) => Bound::Excluded(x.clone()),