2 let _ = Iterator::next(&mut ());
3 //~^ ERROR `()` is not an iterator
4 //~| ERROR `()` is not an iterator
7 //~^ ERROR `bool` is not an iterator
9 let _ = Iterator::next(&mut ());
10 //~^ ERROR `()` is not an iterator
16 // check errors are still reported globally
18 let _ = Iterator::next(&mut ());
19 //~^ ERROR `()` is not an iterator
20 //~| ERROR `()` is not an iterator
22 let _ = Iterator::next(&mut ());
23 //~^ ERROR `()` is not an iterator
26 //~^ ERROR `bool` is not an iterator