]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/redundant_slicing.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / redundant_slicing.stderr
1 error: redundant slicing of the whole range
2 --> $DIR/redundant_slicing.rs:8: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 = help: to override `-D warnings` add `#[allow(clippy::redundant_slicing)]`
9
10 error: redundant slicing of the whole range
11 --> $DIR/redundant_slicing.rs:12:13
12 |
13 LL | let _ = &(&*v)[..]; // Outer borrow is redundant
14 | ^^^^^^^^^^ help: use the original value instead: `(&*v)`
15
16 error: redundant slicing of the whole range
17 --> $DIR/redundant_slicing.rs:29:13
18 |
19 LL | let _ = &m!(slice)[..];
20 | ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
21
22 error: aborting due to 3 previous errors
23