1 error: the loop variable `i` is only used to index `ns`.
2 --> $DIR/needless_range_loop.rs:8:5
5 9 | | println!("{}", ns[i]);
9 = note: `-D needless-range-loop` implied by `-D warnings`
10 help: consider using an iterator
12 8 | for <item> in ns.iter().take(10).skip(3) {
15 error: the loop variable `i` is only used to index `ms`.
16 --> $DIR/needless_range_loop.rs:29:5
18 29 | / for i in 0..ms.len() {
22 help: consider using an iterator
24 29 | for <item> in &mut ms {
27 error: the loop variable `i` is only used to index `ms`.
28 --> $DIR/needless_range_loop.rs:35:5
30 35 | / for i in 0..ms.len() {
31 36 | | let x = &mut ms[i];
35 help: consider using an iterator
37 35 | for <item> in &mut ms {
40 error: aborting due to 3 previous errors