2018-03-12 21:40:55 -05:00
|
|
|
error[E0277]: the trait bound `&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>: std::iter::Iterator` is not satisfied
|
2018-03-12 23:05:46 -05:00
|
|
|
--> $DIR/suggest-remove-refs-1.rs:14:19
|
2018-03-12 21:40:55 -05:00
|
|
|
|
|
|
|
|
LL | for (i, n) in &v.iter().enumerate() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| `&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator; maybe try calling `.iter()` or a similar method
|
2018-03-12 23:05:46 -05:00
|
|
|
| help: consider removing 1 references `&`: `v.iter().enumerate()`
|
2018-03-12 21:40:55 -05:00
|
|
|
|
|
|
|
|
= help: the trait `std::iter::Iterator` is not implemented for `&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>`
|
|
|
|
= note: required by `std::iter::IntoIterator::into_iter`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
If you want more information on this error, try using "rustc --explain E0277"
|