error[E0277]: the trait bound `&&&&&std::iter::Enumerate>: std::iter::Iterator` is not satisfied --> $DIR/suggest-remove-refs-3.rs:14:19 | LL | for (i, n) in & & & | ___________________^ LL | | & &v LL | | .iter() LL | | .enumerate() { | |____________________^ `&&&&&std::iter::Enumerate>` is not an iterator; maybe try calling `.iter()` or a similar method | = help: the trait `std::iter::Iterator` is not implemented for `&&&&&std::iter::Enumerate>` = note: required by `std::iter::IntoIterator::into_iter` help: consider removing 5 references `&` | LL | for (i, n) in v LL | .iter() LL | .enumerate() { | error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0277"