2020-09-02 10:40:56 +03:00
error[E0277]: `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
2020-07-02 14:32:12 +09:00
--> $DIR/suggest-remove-refs-3.rs:6:19
2018-03-14 06:42:27 -03:00
|
2023-01-01 18:43:47 -08:00
LL | for (i, _) in & & &
| ___________________^
LL | | & &v
LL | | .iter()
LL | | .enumerate() {
| |____________________^ `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
2018-03-14 06:42:27 -03:00
|
2024-01-29 18:31:02 +00:00
= help: the trait `Iterator` is not implemented for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>`, which is required by `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>: IntoIterator`
2022-08-15 21:31:37 +01:00
= note: required for `&&&&&Enumerate<std::slice::Iter<'_, {integer}>>` to implement `IntoIterator`
2023-01-01 18:43:47 -08:00
help: consider removing 5 leading `&`-references
|
LL - for (i, _) in & & &
LL + for (i, _) in v
|
2018-03-14 06:42:27 -03:00
2023-11-21 15:44:16 +00:00
error: aborting due to 1 previous error
2018-03-14 06:42:27 -03:00
2018-03-14 12:49:06 -03:00
For more information about this error, try `rustc --explain E0277`.