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.
collect
Vec<_>
1 parent 6f08e1b commit 289bea6Copy full SHA for 289bea6
core/src/iter/traits/iterator.rs
@@ -1829,6 +1829,7 @@ pub trait Iterator {
1829
#[inline]
1830
#[stable(feature = "rust1", since = "1.0.0")]
1831
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead"]
1832
+ #[cfg_attr(not(test), rustc_diagnostic_item = "iterator_collect_fn")]
1833
fn collect<B: FromIterator<Self::Item>>(self) -> B
1834
where
1835
Self: Sized,
0 commit comments