From 9c1255f0a46e7a8d22f17ad5705f0c8e2018bfe6 Mon Sep 17 00:00:00 2001 From: Connor Tsui <87130162+connortsui20@users.noreply.github.com> Date: Thu, 28 Aug 2025 20:38:07 +0100 Subject: [PATCH] add feature gate in doc test --- library/core/src/ops/range.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/src/ops/range.rs b/library/core/src/ops/range.rs index c5a7744d73b3..b1df5afa2022 100644 --- a/library/core/src/ops/range.rs +++ b/library/core/src/ops/range.rs @@ -742,6 +742,8 @@ impl Bound<&T> { /// # Examples /// /// ``` + /// #![feature(bound_copied)] + /// /// use std::ops::Bound::*; /// use std::ops::RangeBounds; ///