add feature gate in doc test

This commit is contained in:
Connor Tsui 2025-08-28 20:38:07 +01:00 committed by Connor Tsui
parent 1112274275
commit 9c1255f0a4
No known key found for this signature in database

View file

@ -742,6 +742,8 @@ impl<T: Copy> Bound<&T> {
/// # Examples
///
/// ```
/// #![feature(bound_copied)]
///
/// use std::ops::Bound::*;
/// use std::ops::RangeBounds;
///