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.
1 parent 9efc7de commit 2661194Copy full SHA for 2661194
core/src/iter/traits/iterator.rs
@@ -93,6 +93,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
93
message = "`{Self}` is not an iterator"
94
)]
95
#[doc(spotlight)]
96
+#[rustc_diagnostic_item = "Iterator"]
97
#[must_use = "iterators are lazy and do nothing unless consumed"]
98
pub trait Iterator {
99
/// The type of the elements being iterated over.
0 commit comments