]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/len_zero_ranges.stderr
bump version to 1.81.0+dfsg1-2~bpo12+pve1
[rustc.git] / src / tools / clippy / tests / ui / len_zero_ranges.stderr
CommitLineData
f20569fa 1error: length comparison to zero
c620b35d 2 --> tests/ui/len_zero_ranges.rs:7:17
f20569fa
XL
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`
781aab86 8 = help: to override `-D warnings` add `#[allow(clippy::len_zero)]`
f20569fa
XL
9
10error: length comparison to zero
c620b35d 11 --> tests/ui/len_zero_ranges.rs:11:17
f20569fa
XL
12 |
13LL | let _ = (0_u8..=42).len() == 0;
14 | ^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `(0_u8..=42).is_empty()`
15
16error: aborting due to 2 previous errors
17