mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
11 lines
332 B
Text
11 lines
332 B
Text
|
error: length comparison to zero
|
||
|
--> $DIR/len_zero_ranges.rs:10:17
|
||
|
|
|
||
|
LL | let _ = (0..42).len() == 0;
|
||
|
| ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0..42).is_empty()`
|
||
|
|
|
||
|
= note: `-D clippy::len-zero` implied by `-D warnings`
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|