3 Checks for calls to `iter`, `iter_mut` or `into_iter` on empty collections
7 It is simpler to use the empty function from the standard library:
12 use std::{slice, option};
13 let a: slice::Iter<i32> = [].iter();
14 let f: option::IntoIter<i32> = None.into_iter();
19 let a: iter::Empty<i32> = iter::empty();
20 let b: iter::Empty<i32> = iter::empty();
25 The type of the resulting iterator might become incompatible with its usage