1 2 3 4 5 6 7 8 9 10
#![warn(clippy::filter_next)] fn main() { issue10029(); } pub fn issue10029() { let iter = (0..10); let _ = iter.filter(|_| true).next(); }