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

16 lines
833 B
Plaintext
Raw Normal View History

2018-03-13 01:05:46 -03:00
error[E0277]: the trait bound `&&&&&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>: std::iter::Iterator` is not satisfied
--> $DIR/suggest-remove-refs-2.rs:14:19
|
LL | for (i, n) in & & & & &v.iter().enumerate() {
| ---------^^^^^^^^^^^^^^^^^^^^
2018-03-13 01:05:46 -03:00
| |
| `&&&&&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator; maybe try calling `.iter()` or a similar method
| help: consider removing 5 leading `&`-references
2018-03-13 01:05:46 -03: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
2018-03-14 12:49:06 -03:00
For more information about this error, try `rustc --explain E0277`.