rust/tests/ui/redundant_slicing.stderr

23 lines
742 B
Plaintext
Raw Normal View History

error: redundant slicing of the whole range
2023-07-27 06:40:22 -05:00
--> $DIR/redundant_slicing.rs:8:13
|
LL | let _ = &slice[..]; // Redundant slice
| ^^^^^^^^^^ help: use the original value instead: `slice`
|
= note: `-D clippy::redundant-slicing` implied by `-D warnings`
error: redundant slicing of the whole range
2023-07-27 06:40:22 -05:00
--> $DIR/redundant_slicing.rs:12:13
|
LL | let _ = &(&*v)[..]; // Outer borrow is redundant
| ^^^^^^^^^^ help: use the original value instead: `(&*v)`
error: redundant slicing of the whole range
2023-07-27 06:40:22 -05:00
--> $DIR/redundant_slicing.rs:29:13
|
LL | let _ = &m!(slice)[..];
| ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
error: aborting due to 3 previous errors