]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_slicing.stderr
Auto merge of #6528 - Jarcho:redundant_slicing, r=flip1995
[rust.git] / tests / ui / redundant_slicing.stderr
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