summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/len_zero_ranges.stderr
blob: acb85f7100a39bbf76d9829949864931e17973d8 (plain)
1
2
3
4
5
6
7
8
9
10
error: length comparison to zero
  --> $DIR/len_zero_ranges.rs:11: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