]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/len_zero_ranges.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / len_zero_ranges.stderr
CommitLineData
f20569fa
XL
1error: length comparison to zero
2 --> $DIR/len_zero_ranges.rs:9:17
3 |
4LL | 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
9error: length comparison to zero
10 --> $DIR/len_zero_ranges.rs:13:17
11 |
12LL | let _ = (0_u8..=42).len() == 0;
13 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0_u8..=42).is_empty()`
14
15error: aborting due to 2 previous errors
16