2020-06-09 09:36:01 -05:00
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
#![feature(range_is_empty)]
|
|
|
|
#![warn(clippy::len_zero)]
|
|
|
|
#![allow(unused)]
|
2020-08-24 16:28:01 -05:00
|
|
|
#![allow(stable_features)] // TODO: https://github.com/rust-lang/rust-clippy/issues/5956
|
2020-06-09 09:36:01 -05:00
|
|
|
|
|
|
|
mod issue_3807 {
|
|
|
|
// With the feature enabled, `is_empty` should be suggested
|
|
|
|
fn suggestion_is_fine() {
|
|
|
|
let _ = (0..42).is_empty();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|