We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Iterator
1 parent 50524e6 commit d371191Copy full SHA for d371191
core/src/iter/traits/iterator.rs
@@ -69,6 +69,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
69
message = "`{Self}` is not an iterator"
70
)]
71
#[doc(notable_trait)]
72
+#[cfg_attr(not(bootstrap), lang = "iterator")]
73
#[rustc_diagnostic_item = "Iterator"]
74
#[must_use = "iterators are lazy and do nothing unless consumed"]
75
pub trait Iterator {
0 commit comments