]> git.lizzy.rs Git - rust.git/blob - tests/ui/len_zero_ranges.rs
Auto merge of #5666 - flip1995:rollup-yjyvvbg, r=flip1995
[rust.git] / 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() {}