2020-06-09 14:36:01 +00:00
|
|
|
error: length comparison to zero
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/len_zero_ranges.rs:7:17
|
2020-06-09 14:36:01 +00:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::len_zero)]`
|
2020-06-09 14:36:01 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: length comparison to zero
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/len_zero_ranges.rs:11:17
|
2020-08-28 14:10:16 +00:00
|
|
|
|
|
|
|
|
LL | let _ = (0_u8..=42).len() == 0;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0_u8..=42).is_empty()`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-06-09 14:36:01 +00:00
|
|
|
|