mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
14 lines
259 B
Rust
14 lines
259 B
Rust
// 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() {}
|