1 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
2 --> $DIR/issue-28098.rs:12:13
4 LL | let _ = Iterator::next(&mut ());
5 | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
7 = help: the trait `std::iter::Iterator` is not implemented for `()`
8 = note: required by `std::iter::Iterator::next`
10 error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
11 --> $DIR/issue-28098.rs:15:14
13 LL | for _ in false {}
14 | ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
16 = help: the trait `std::iter::Iterator` is not implemented for `bool`
17 = note: required by `std::iter::IntoIterator::into_iter`
19 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
20 --> $DIR/issue-28098.rs:18:13
22 LL | let _ = Iterator::next(&mut ());
23 | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
25 = help: the trait `std::iter::Iterator` is not implemented for `()`
26 = note: required by `std::iter::Iterator::next`
28 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
29 --> $DIR/issue-28098.rs:27:13
31 LL | let _ = Iterator::next(&mut ());
32 | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
34 = help: the trait `std::iter::Iterator` is not implemented for `()`
35 = note: required by `std::iter::Iterator::next`
37 error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied
38 --> $DIR/issue-28098.rs:30:13
40 LL | let _ = Iterator::next(&mut ());
41 | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method
43 = help: the trait `std::iter::Iterator` is not implemented for `()`
44 = note: required by `std::iter::Iterator::next`
46 error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied
47 --> $DIR/issue-28098.rs:33:14
49 LL | for _ in false {}
50 | ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method
52 = help: the trait `std::iter::Iterator` is not implemented for `bool`
53 = note: required by `std::iter::IntoIterator::into_iter`
55 error: aborting due to 6 previous errors
57 For more information about this error, try `rustc --explain E0277`.