]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/len_zero_ranges.rs
Rollup merge of #72486 - Ralith:asinh-fix, r=dtolnay
[rust.git] / src / tools / clippy / tests / ui / len_zero_ranges.rs
1 // run-rustfix
2
3 #![feature(range_is_empty)]
4 #![warn(clippy::len_zero)]
5 #![allow(unused)]
6
7 mod issue_3807 {
8     // With the feature enabled, `is_empty` should be suggested
9     fn suggestion_is_fine() {
10         let _ = (0..42).len() == 0;
11     }
12 }
13
14 fn main() {}