mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Rollup merge of #42987 - cuviper:iterator_for_each, r=Mark-Simulacrum
Track `iterator_for_each` in #42986 None
This commit is contained in:
commit
bda06de5dc
@ -1,8 +1,8 @@
|
||||
# `iterator_for_each`
|
||||
|
||||
The tracking issue for this feature is: [#TBD]
|
||||
The tracking issue for this feature is: [#42986]
|
||||
|
||||
[#TBD]: https://github.com/rust-lang/rust/issues/TBD
|
||||
[#42986]: https://github.com/rust-lang/rust/issues/42986
|
||||
|
||||
------------------------
|
||||
|
||||
|
@ -522,7 +522,7 @@ pub trait Iterator {
|
||||
/// .for_each(|(i, x)| println!("{}:{}", i, x));
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "iterator_for_each", issue = "0")]
|
||||
#[unstable(feature = "iterator_for_each", issue = "42986")]
|
||||
fn for_each<F>(self, mut f: F) where
|
||||
Self: Sized, F: FnMut(Self::Item),
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user