]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/needless_range_loop.stderr
New upstream version 1.28.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / needless_range_loop.stderr
1 error: the loop variable `i` is only used to index `ns`.
2 --> $DIR/needless_range_loop.rs:8:14
3 |
4 8 | for i in 3..10 {
5 | ^^^^^
6 |
7 = note: `-D needless-range-loop` implied by `-D warnings`
8 help: consider using an iterator
9 |
10 8 | for <item> in ns.iter().take(10).skip(3) {
11 |
12
13 error: the loop variable `i` is only used to index `ms`.
14 --> $DIR/needless_range_loop.rs:29:14
15 |
16 29 | for i in 0..ms.len() {
17 | ^^^^^^^^^^^
18 help: consider using an iterator
19 |
20 29 | for <item> in &mut ms {
21 |
22
23 error: the loop variable `i` is only used to index `ms`.
24 --> $DIR/needless_range_loop.rs:35:14
25 |
26 35 | for i in 0..ms.len() {
27 | ^^^^^^^^^^^
28 help: consider using an iterator
29 |
30 35 | for <item> in &mut ms {
31 |
32
33 error: aborting due to 3 previous errors
34