]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: redundant slicing of the whole range |
2 | --> $DIR/redundant_slicing.rs:6:15 | |
3 | | | |
4 | LL | let err = &x[..]; | |
5 | | ^^^^^^ help: use the original slice instead: `x` | |
6 | | | |
7 | = note: `-D clippy::redundant-slicing` implied by `-D warnings` | |
8 | ||
9 | error: redundant slicing of the whole range | |
10 | --> $DIR/redundant_slicing.rs:10:15 | |
11 | | | |
12 | LL | let err = &(&v[..])[..]; | |
13 | | ^^^^^^^^^^^^^ help: use the original slice instead: `(&v[..])` | |
14 | ||
15 | error: aborting due to 2 previous errors | |
16 |