@@ -4,7 +4,11 @@ error: using `chunks_exact` with a constant chunk size
44LL | let result = slice.chunks_exact(4);
55 | ^^^^^^^^^^^^^^^
66 |
7- = help: consider using `as_chunks::<4>()` instead
7+ help: consider using `as_chunks::<4>()` instead
8+ --> tests/ui/chunks_exact_with_const_size.rs:9:24
9+ |
10+ LL | let result = slice.chunks_exact(4);
11+ | ^^^^^^^^^^^^^^^
812 = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1`
913 = note: `-D clippy::chunks-exact-with-const-size` implied by `-D warnings`
1014 = help: to override `-D warnings` add `#[allow(clippy::chunks_exact_with_const_size)]`
@@ -15,7 +19,11 @@ error: using `chunks_exact` with a constant chunk size
1519LL | let result = slice.chunks_exact(CHUNK_SIZE);
1620 | ^^^^^^^^^^^^^^^^^^^^^^^^
1721 |
18- = help: consider using `as_chunks::<CHUNK_SIZE>()` instead
22+ help: consider using `as_chunks::<CHUNK_SIZE>()` instead
23+ --> tests/ui/chunks_exact_with_const_size.rs:14:24
24+ |
25+ LL | let result = slice.chunks_exact(CHUNK_SIZE);
26+ | ^^^^^^^^^^^^^^^^^^^^^^^^
1927 = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1`
2028
2129error: using `chunks_exact` with a constant chunk size
@@ -24,7 +32,11 @@ error: using `chunks_exact` with a constant chunk size
2432LL | let result = slice.chunks_exact(3);
2533 | ^^^^^^^^^^^^^^^
2634 |
27- = help: consider using `as_chunks::<3>()` instead
35+ help: consider using `as_chunks::<3>()` instead
36+ --> tests/ui/chunks_exact_with_const_size.rs:23:24
37+ |
38+ LL | let result = slice.chunks_exact(3);
39+ | ^^^^^^^^^^^^^^^
2840 = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1`
2941
3042error: using `chunks_exact_mut` with a constant chunk size
@@ -33,7 +45,11 @@ error: using `chunks_exact_mut` with a constant chunk size
3345LL | let result = arr.chunks_exact_mut(4);
3446 | ^^^^^^^^^^^^^^^^^^^
3547 |
36- = help: consider using `as_chunks_mut::<4>()` instead
48+ help: consider using `as_chunks_mut::<4>()` instead
49+ --> tests/ui/chunks_exact_with_const_size.rs:28:22
50+ |
51+ LL | let result = arr.chunks_exact_mut(4);
52+ | ^^^^^^^^^^^^^^^^^^^
3753 = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1`
3854
3955error: using `chunks_exact` with a constant chunk size
@@ -42,7 +58,11 @@ error: using `chunks_exact` with a constant chunk size
4258LL | .chunks_exact(2);
4359 | ^^^^^^^^^^^^^^^
4460 |
45- = help: consider using `as_chunks::<2>()` instead
61+ help: consider using `as_chunks::<2>()` instead
62+ --> tests/ui/chunks_exact_with_const_size.rs:37:10
63+ |
64+ LL | .chunks_exact(2);
65+ | ^^^^^^^^^^^^^^^
4666 = note: you can access the chunks using `result.0.iter()`, and the remainder using `result.1`
4767
4868error: aborting due to 5 previous errors
0 commit comments