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:
Ulrik Sverdrup 2016-02-27 17:32:20 +01:00
parent 09130044ce
commit 33d1a58001
1 changed files with 1 additions and 1 deletions

View File

@ -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); },