2 let _ = Iterator::next(&mut ());
3 //~^ ERROR `()` is not an iterator
4 //~| ERROR `()` is not an iterator
5 //~| ERROR `()` is not an iterator
8 //~^ ERROR `bool` is not an iterator
10 let _ = Iterator::next(&mut ());
11 //~^ ERROR `()` is not an iterator
12 //~| ERROR `()` is not an iterator
18 // check errors are still reported globally
20 let _ = Iterator::next(&mut ());
21 //~^ ERROR `()` is not an iterator
22 //~| ERROR `()` is not an iterator
23 //~| ERROR `()` is not an iterator
25 let _ = Iterator::next(&mut ());
26 //~^ ERROR `()` is not an iterator
27 //~| ERROR `()` is not an iterator
30 //~^ ERROR `bool` is not an iterator