1 error[E0277]: `()` is not an iterator
2 --> $DIR/issue-28098.rs:2:28
4 LL | let _ = Iterator::next(&mut ());
5 | -------------- ^^^^^^^ `()` is not an iterator
7 | required by a bound introduced by this call
9 = help: the trait `Iterator` is not implemented for `()`
11 error[E0277]: `bool` is not an iterator
12 --> $DIR/issue-28098.rs:6:14
14 LL | for _ in false {}
15 | ^^^^^ `bool` is not an iterator
17 = help: the trait `Iterator` is not implemented for `bool`
18 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
20 error[E0277]: `()` is not an iterator
21 --> $DIR/issue-28098.rs:9:28
23 LL | let _ = Iterator::next(&mut ());
24 | -------------- ^^^^^^^ `()` is not an iterator
26 | required by a bound introduced by this call
28 = help: the trait `Iterator` is not implemented for `()`
30 error[E0277]: `()` is not an iterator
31 --> $DIR/issue-28098.rs:2:13
33 LL | let _ = Iterator::next(&mut ());
34 | ^^^^^^^^^^^^^^ `()` is not an iterator
36 = help: the trait `Iterator` is not implemented for `()`
38 error[E0277]: `()` is not an iterator
39 --> $DIR/issue-28098.rs:18:28
41 LL | let _ = Iterator::next(&mut ());
42 | -------------- ^^^^^^^ `()` is not an iterator
44 | required by a bound introduced by this call
46 = help: the trait `Iterator` is not implemented for `()`
48 error[E0277]: `()` is not an iterator
49 --> $DIR/issue-28098.rs:22:28
51 LL | let _ = Iterator::next(&mut ());
52 | -------------- ^^^^^^^ `()` is not an iterator
54 | required by a bound introduced by this call
56 = help: the trait `Iterator` is not implemented for `()`
58 error[E0277]: `bool` is not an iterator
59 --> $DIR/issue-28098.rs:25:14
61 LL | for _ in false {}
62 | ^^^^^ `bool` is not an iterator
64 = help: the trait `Iterator` is not implemented for `bool`
65 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
67 error[E0277]: `()` is not an iterator
68 --> $DIR/issue-28098.rs:18:13
70 LL | let _ = Iterator::next(&mut ());
71 | ^^^^^^^^^^^^^^ `()` is not an iterator
73 = help: the trait `Iterator` is not implemented for `()`
75 error: aborting due to 8 previous errors
77 For more information about this error, try `rustc --explain E0277`.