Skip to content

Commit 2661194

Browse files
committed
Add suggestion for iterators in iterators
1 parent 9efc7de commit 2661194

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ fn _assert_is_object_safe(_: &dyn Iterator<Item = ()>) {}
9393
message = "`{Self}` is not an iterator"
9494
)]
9595
#[doc(spotlight)]
96+
#[rustc_diagnostic_item = "Iterator"]
9697
#[must_use = "iterators are lazy and do nothing unless consumed"]
9798
pub trait Iterator {
9899
/// The type of the elements being iterated over.

0 commit comments

Comments
 (0)