rust/src/test/ui/suggestions/suggest-remove-refs-2.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
776 B
Plaintext
Raw Normal View History

error[E0277]: `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
2020-07-02 00:32:12 -05:00
--> $DIR/suggest-remove-refs-2.rs:6:19
2018-03-12 23:05:46 -05:00
|
2020-07-02 00:32:12 -05:00
LL | for (i, _) in & & & & &v.iter().enumerate() {
| ---------^^^^^^^^^^^^^^^^^^^^
2018-03-12 23:05:46 -05:00
| |
| `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
| help: consider removing 5 leading `&`-references
2018-03-12 23:05:46 -05:00
|
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
2020-09-07 04:01:45 -05:00
= note: required because of the requirements on the impl of `IntoIterator` for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`
2018-03-12 23:05:46 -05:00
error: aborting due to previous error
2018-03-14 10:49:06 -05:00
For more information about this error, try `rustc --explain E0277`.