diff options
| author | Chris Gregory <czipperz@gmail.com> | 2019-05-30 21:52:52 -0500 |
|---|---|---|
| committer | Chris Gregory <czipperz@gmail.com> | 2019-05-30 21:52:52 -0500 |
| commit | 867c4a5fdac44d683035d8eaaf69f43adffcc5ca (patch) | |
| tree | e9aef7211943179f99292d42da3f634ff7d18a2d /src/libcore | |
| parent | 333e1ca319636d23983de1f8ea2c102aae731c54 (diff) | |
| download | rust-867c4a5fdac44d683035d8eaaf69f43adffcc5ca.tar.gz rust-867c4a5fdac44d683035d8eaaf69f43adffcc5ca.zip | |
Fix compilation errors
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops/range.rs | 4 |
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()), |
