rust-clippy/tests/ui/methods_unfixable.rs
2023-08-11 14:02:28 +00:00

10 lines
167 B
Rust

#![warn(clippy::filter_next)]
//@no-rustfix
fn main() {
issue10029();
}
pub fn issue10029() {
let iter = (0..10);
let _ = iter.filter(|_| true).next();
}