]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_slicing.stderr
Merge commit 'e329249b6a3a98830d860c74c8234a8dd9407436' into clippyup
[rust.git] / tests / ui / redundant_slicing.stderr
1 error: redundant slicing of the whole range
2   --> $DIR/redundant_slicing.rs:10:13
3    |
4 LL |     let _ = &slice[..]; // Redundant slice
5    |             ^^^^^^^^^^ help: use the original value instead: `slice`
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:14:13
11    |
12 LL |     let _ = &(&*v)[..]; // Outer borrow is redundant
13    |             ^^^^^^^^^^ help: use the original value instead: `(&*v)`
14
15 error: redundant slicing of the whole range
16   --> $DIR/redundant_slicing.rs:31:13
17    |
18 LL |     let _ = &m!(slice)[..];
19    |             ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
20
21 error: aborting due to 3 previous errors
22