2023-07-17 03:19:29 -05:00
|
|
|
#![warn(clippy::filter_next)]
|
2023-08-24 14:32:12 -05:00
|
|
|
//@no-rustfix
|
2023-07-17 03:19:29 -05:00
|
|
|
fn main() {
|
|
|
|
issue10029();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn issue10029() {
|
|
|
|
let iter = (0..10);
|
|
|
|
let _ = iter.filter(|_| true).next();
|
2023-08-24 14:32:12 -05:00
|
|
|
//~^ ERROR: called `filter(..).next()` on an `Iterator`. This is more succinctly expre
|
2023-07-17 03:19:29 -05:00
|
|
|
}
|