Make for loop desugaring for iterators more precise
The UFCS call IntoIterator::into_iter() is used by the for loop.
This commit is contained in:
parent
09130044ce
commit
33d1a58001
|
@ -189,7 +189,7 @@
|
|||
//! ```
|
||||
//! let values = vec![1, 2, 3, 4, 5];
|
||||
//! {
|
||||
//! let result = match values.into_iter() {
|
||||
//! let result = match IntoIterator::into_iter(values) {
|
||||
//! mut iter => loop {
|
||||
//! match iter.next() {
|
||||
//! Some(x) => { println!("{}", x); },
|
||||
|
|
Loading…
Reference in New Issue