]> git.lizzy.rs Git - rust.git/blob - tests/ui/len_zero_ranges.stderr
Rollup merge of #5656 - ebroto:len_zero_ranges, r=matthiaskrgr
[rust.git] / tests / ui / len_zero_ranges.stderr
1 error: length comparison to zero
2   --> $DIR/len_zero_ranges.rs:10:17
3    |
4 LL |         let _ = (0..42).len() == 0;
5    |                 ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0..42).is_empty()`
6    |
7    = note: `-D clippy::len-zero` implied by `-D warnings`
8
9 error: aborting due to previous error
10