3 #![feature(range_is_empty)]
4 #![warn(clippy::len_zero)]
6 #![allow(stable_features)] // TODO: https://github.com/rust-lang/rust-clippy/issues/5956
9 // With the feature enabled, `is_empty` should be suggested
10 fn suggestion_is_fine() {
11 let _ = (0..42).len() == 0;