1 error: it looks like you're manually copying between slices
2 --> $DIR/with_loop_counters.rs:5:5
4 LL | / for i in 3..src.len() {
5 LL | | dst[i] = src[count];
8 | |_____^ help: try replacing the loop by: `dst[3..src.len()].clone_from_slice(&src[..(src.len() - 3)]);`
10 = note: `-D clippy::manual-memcpy` implied by `-D warnings`
12 error: it looks like you're manually copying between slices
13 --> $DIR/with_loop_counters.rs:11:5
15 LL | / for i in 3..src.len() {
16 LL | | dst[count] = src[i];
19 | |_____^ help: try replacing the loop by: `dst[..(src.len() - 3)].clone_from_slice(&src[3..]);`
21 error: it looks like you're manually copying between slices
22 --> $DIR/with_loop_counters.rs:17:5
24 LL | / for i in 0..src.len() {
25 LL | | dst[count] = src[i];
28 | |_____^ help: try replacing the loop by: `dst[3..(src.len() + 3)].clone_from_slice(&src[..]);`
30 error: it looks like you're manually copying between slices
31 --> $DIR/with_loop_counters.rs:23:5
33 LL | / for i in 0..src.len() {
34 LL | | dst[i] = src[count];
37 | |_____^ help: try replacing the loop by: `dst[..src.len()].clone_from_slice(&src[3..(src.len() + 3)]);`
39 error: it looks like you're manually copying between slices
40 --> $DIR/with_loop_counters.rs:29:5
42 LL | / for i in 3..(3 + src.len()) {
43 LL | | dst[i] = src[count];
46 | |_____^ help: try replacing the loop by: `dst[3..((3 + src.len()))].clone_from_slice(&src[..((3 + src.len()) - 3)]);`
48 error: it looks like you're manually copying between slices
49 --> $DIR/with_loop_counters.rs:35:5
51 LL | / for i in 5..src.len() {
52 LL | | dst[i] = src[count - 2];
55 | |_____^ help: try replacing the loop by: `dst[5..src.len()].clone_from_slice(&src[(3 - 2)..((src.len() - 2) + 3 - 5)]);`
57 error: it looks like you're manually copying between slices
58 --> $DIR/with_loop_counters.rs:41:5
60 LL | / for i in 0..dst.len() {
61 LL | | dst[i] = src[count];
64 | |_____^ help: try replacing the loop by: `dst.clone_from_slice(&src[2..(dst.len() + 2)]);`
66 error: it looks like you're manually copying between slices
67 --> $DIR/with_loop_counters.rs:47:5
69 LL | / for i in 3..10 {
70 LL | | dst[i] = src[count];
73 | |_____^ help: try replacing the loop by: `dst[3..10].clone_from_slice(&src[5..(10 + 5 - 3)]);`
75 error: it looks like you're manually copying between slices
76 --> $DIR/with_loop_counters.rs:54:5
78 LL | / for i in 0..src.len() {
79 LL | | dst[count] = src[i];
80 LL | | dst2[count2] = src[i];
86 help: try replacing the loop by
88 LL | dst[3..(src.len() + 3)].clone_from_slice(&src[..]);
89 LL | dst2[30..(src.len() + 30)].clone_from_slice(&src[..]);
92 error: it looks like you're manually copying between slices
93 --> $DIR/with_loop_counters.rs:64:5
95 LL | / for i in 0..1 << 1 {
96 LL | | dst[count] = src[i + 2];
99 | |_____^ help: try replacing the loop by: `dst[(0 << 1)..((1 << 1) + (0 << 1))].clone_from_slice(&src[2..((1 << 1) + 2)]);`
101 error: it looks like you're manually copying between slices
102 --> $DIR/with_loop_counters.rs:71:5
104 LL | / for i in 3..src.len() {
105 LL | | dst[i] = src[count];
108 | |_____^ help: try replacing the loop by: `dst[3..src.len()].clone_from_slice(&src[..(src.len() - 3)]);`
110 error: aborting due to 11 previous errors