23 lines
899 B
Plaintext
23 lines
899 B
Plaintext
|
error[E0277]: the trait bound `&&&&&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>: 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<std::slice::Iter<'_, {integer}>>` 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<std::slice::Iter<'_, {integer}>>`
|
||
|
= 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"
|