summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/len_zero_ranges.fixed
blob: 7da26f8ff4d477b9ab0cde400eb834b44ee24cde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-rustfix

#![feature(range_is_empty)]
#![warn(clippy::len_zero)]
#![allow(unused)]

mod issue_3807 {
    // With the feature enabled, `is_empty` should be suggested
    fn suggestion_is_fine() {
        let _ = (0..42).is_empty();
    }
}

fn main() {}