Skip to content

Commit a352336

Browse files
committed
Ignore doctests in bootstrap
On bootstrap the IntoIterator trait is not implemented yet for arrays.
1 parent 12642d9 commit a352336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/primitive_docs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ mod prim_pointer {}
614614
/// * replace `for ... in array.into_iter() {` with `for ... in array {`,
615615
/// equivalent to the post-2021 behavior (Rust 1.53+)
616616
///
617-
/// ```rust,edition2018
617+
#[cfg_attr(bootstrap, doc = "```rust,edition2018,ignore")]
618+
#[cfg_attr(not(bootstrap), doc = "```rust,edition2018")]
618619
/// use std::array::IntoIter;
619620
///
620621
/// let array: [i32; 3] = [0; 3];

0 commit comments

Comments
 (0)