1 error: redundant slicing of the whole range
2 --> $DIR/redundant_slicing.rs:6:13
4 LL | let _ = &slice[..];
5 | ^^^^^^^^^^ help: use the original value instead: `slice`
7 = note: `-D clippy::redundant-slicing` implied by `-D warnings`
9 error: redundant slicing of the whole range
10 --> $DIR/redundant_slicing.rs:10:13
12 LL | let _ = &(&v[..])[..]; // Outer borrow is redundant
13 | ^^^^^^^^^^^^^ help: use the original value instead: `(&v[..])`
15 error: redundant slicing of the whole range
16 --> $DIR/redundant_slicing.rs:13:20
18 LL | let err = &mut &S[..]; // Should reborrow instead of slice
19 | ^^^^^^ help: reborrow the original value instead: `&*S`
21 error: redundant slicing of the whole range
22 --> $DIR/redundant_slicing.rs:17:13
24 LL | let _ = &mut mut_slice[..]; // Should reborrow instead of slice
25 | ^^^^^^^^^^^^^^^^^^ help: reborrow the original value instead: `&mut *mut_slice`
27 error: redundant slicing of the whole range
28 --> $DIR/redundant_slicing.rs:24:13
30 LL | let _ = &m!(slice)[..];
31 | ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
33 error: aborting due to 5 previous errors