about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorConnor Tsui <87130162+connortsui20@users.noreply.github.com>2025-08-28 20:38:07 +0100
committerConnor Tsui <connor.tsui20@gmail.com>2025-08-30 10:48:27 +0100
commit9c1255f0a46e7a8d22f17ad5705f0c8e2018bfe6 (patch)
tree1793cee242683f46d2a2413868637ad27c961920 /library/core/src
parent1112274275be9216b42ef2f27b1e85c5e88d67c5 (diff)
downloadrust-9c1255f0a46e7a8d22f17ad5705f0c8e2018bfe6.tar.gz
rust-9c1255f0a46e7a8d22f17ad5705f0c8e2018bfe6.zip
add feature gate in doc test
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/ops/range.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs
index c5a7744d73b..b1df5afa202 100644
--- a/library/core/src/ops/range.rs
+++ b/library/core/src/ops/range.rs
@@ -742,6 +742,8 @@ impl<T: Copy> Bound<&T> {
     /// # Examples
     ///
     /// ```
+    /// #![feature(bound_copied)]
+    ///
     /// use std::ops::Bound::*;
     /// use std::ops::RangeBounds;
     ///