2023-06-23 16:23:36 -05:00
|
|
|
#![warn(clippy::filter_next)]
|
2023-07-27 06:40:22 -05:00
|
|
|
//@no-rustfix
|
2023-06-23 16:23:36 -05:00
|
|
|
fn main() {
|
|
|
|
issue10029();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn issue10029() {
|
|
|
|
let iter = (0..10);
|
|
|
|
let _ = iter.filter(|_| true).next();
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: called `filter(..).next()` on an `Iterator`. This is more succinctly expre
|
2023-06-23 16:23:36 -05:00
|
|
|
}
|