Skip to content

Commit 71c87ef

Browse files
committed
Add feature flag to docs test
1 parent ff1cfbe commit 71c87ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/core/src/iter/traits/iterator.rs

+8
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,8 @@ pub trait Iterator {
22842284
/// Basic usage:
22852285
///
22862286
/// ```
2287+
/// #![feature(iter_at_least)]
2288+
///
22872289
/// let a = [1, 2, 3];
22882290
///
22892291
/// assert!(a.iter().at_least(1, |&x| x > 0));
@@ -2294,6 +2296,8 @@ pub trait Iterator {
22942296
/// Stopping at the `n`th `true`:
22952297
///
22962298
/// ```
2299+
/// #![feature(iter_at_least)]
2300+
///
22972301
/// let a = vec![1, 2, 3, 4, 5];
22982302
///
22992303
/// let mut iter = a.iter();
@@ -2349,6 +2353,8 @@ pub trait Iterator {
23492353
/// Basic usage:
23502354
///
23512355
/// ```
2356+
/// #![feature(iter_at_most)]
2357+
///
23522358
/// let a = [1, 2, 3];
23532359
///
23542360
/// assert!(a.iter().at_most(1, |&x| x > 3));
@@ -2359,6 +2365,8 @@ pub trait Iterator {
23592365
/// Stopping at the `n + 1`th `true`:
23602366
///
23612367
/// ```
2368+
/// #![feature(iter_at_most)]
2369+
///
23622370
/// let a = vec![1, 2, 3, 4, 5];
23632371
///
23642372
/// let mut iter = a.iter();

0 commit comments

Comments
 (0)