summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-remove-refs-2.stderr
blob: 197b19a1bffc273fb9b8ec02226c781c9cda2c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0277]: `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
  --> $DIR/suggest-remove-refs-2.rs:6:19
   |
LL |     for (i, _) in & & & & &v.iter().enumerate() {
   |                   ---------^^^^^^^^^^^^^^^^^^^^
   |                   |
   |                   `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
   |                   help: consider removing 5 leading `&`-references
   |
   = help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
   = note: required because of the requirements on the impl of `IntoIterator` for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0277`.