Skip to content

Commit 9c1255f

Browse files
committed
add feature gate in doc test
1 parent 1112274 commit 9c1255f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/ops/range.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ impl<T: Copy> Bound<&T> {
742742
/// # Examples
743743
///
744744
/// ```
745+
/// #![feature(bound_copied)]
746+
///
745747
/// use std::ops::Bound::*;
746748
/// use std::ops::RangeBounds;
747749
///

0 commit comments

Comments
 (0)