]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/redundant_slicing.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / redundant_slicing.stderr
CommitLineData
f20569fa
XL
1error: redundant slicing of the whole range
2 --> $DIR/redundant_slicing.rs:6:15
3 |
4LL | let err = &x[..];
5 | ^^^^^^ help: use the original slice instead: `x`
6 |
7 = note: `-D clippy::redundant-slicing` implied by `-D warnings`
8
9error: redundant slicing of the whole range
10 --> $DIR/redundant_slicing.rs:10:15
11 |
12LL | let err = &(&v[..])[..];
13 | ^^^^^^^^^^^^^ help: use the original slice instead: `(&v[..])`
14
15error: aborting due to 2 previous errors
16