2023-02-27 11:47:48 -06:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:9:18
|
2023-02-27 11:47:48 -06:00
|
|
|
|
|
2023-02-27 12:28:27 -06:00
|
|
|
LL | for _ in iterator.into_iter() {}
|
2023-02-27 11:47:48 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `iterator`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::explicit-into-iter-loop` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:22:14
|
2023-02-27 12:28:27 -06:00
|
|
|
|
|
|
|
|
LL | for _ in t.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `&t`
|
|
|
|
|
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:25:14
|
2023-02-27 11:47:48 -06:00
|
|
|
|
|
|
|
|
LL | for _ in r.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `r`
|
|
|
|
|
2023-02-27 12:28:27 -06:00
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:33:14
|
2023-02-27 12:28:27 -06:00
|
|
|
|
|
|
|
|
LL | for _ in mr.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&*mr`
|
|
|
|
|
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:45:14
|
2023-02-27 12:28:27 -06:00
|
|
|
|
|
|
|
|
LL | for _ in u.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut u`
|
|
|
|
|
|
|
|
error: it is more concise to loop over containers instead of using explicit iteration methods
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/explicit_into_iter_loop.rs:48:14
|
2023-02-27 12:28:27 -06:00
|
|
|
|
|
|
|
|
LL | for _ in mr.into_iter() {}
|
|
|
|
| ^^^^^^^^^^^^^^ help: to write this more concisely, try: `&mut *mr`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2023-02-27 11:47:48 -06:00
|
|
|
|