mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
10 lines
154 B
Rust
10 lines
154 B
Rust
#![warn(clippy::filter_next)]
|
|
|
|
fn main() {
|
|
issue10029();
|
|
}
|
|
|
|
pub fn issue10029() {
|
|
let iter = (0..10);
|
|
let _ = iter.filter(|_| true).next();
|
|
}
|