2 Checks for iteration that may be infinite.
5 While there may be places where this is acceptable
6 (e.g., in event streams), in most cases this is simply an error.
9 The code may have a condition to stop iteration, but
10 this lint is not clever enough to analyze it.
14 let infinite_iter = 0..;
15 [0..].iter().zip(infinite_iter.take_while(|x| *x > 5));