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]: `()` is not an iterator
12 --> $DIR/issue-28098.rs:2:13
14 LL | let _ = Iterator::next(&mut ());
15 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
17 = help: the trait `Iterator` is not implemented for `()`
19 error[E0277]: `bool` is not an iterator
20 --> $DIR/issue-28098.rs:7:14
22 LL | for _ in false {}
23 | ^^^^^ `bool` is not an iterator
25 = help: the trait `Iterator` is not implemented for `bool`
26 = note: required for `bool` to implement `IntoIterator`
28 error[E0277]: `()` is not an iterator
29 --> $DIR/issue-28098.rs:10:28
31 LL | let _ = Iterator::next(&mut ());
32 | -------------- ^^^^^^^ `()` is not an iterator
34 | required by a bound introduced by this call
36 = help: the trait `Iterator` is not implemented for `()`
38 error[E0277]: `()` is not an iterator
39 --> $DIR/issue-28098.rs:10:13
41 LL | let _ = Iterator::next(&mut ());
42 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
44 = help: the trait `Iterator` is not implemented for `()`
46 error[E0277]: `()` is not an iterator
47 --> $DIR/issue-28098.rs:2:13
49 LL | let _ = Iterator::next(&mut ());
50 | ^^^^^^^^^^^^^^ `()` is not an iterator
52 = help: the trait `Iterator` is not implemented for `()`
54 error[E0277]: `()` is not an iterator
55 --> $DIR/issue-28098.rs:20:28
57 LL | let _ = Iterator::next(&mut ());
58 | -------------- ^^^^^^^ `()` is not an iterator
60 | required by a bound introduced by this call
62 = help: the trait `Iterator` is not implemented for `()`
64 error[E0277]: `()` is not an iterator
65 --> $DIR/issue-28098.rs:20:13
67 LL | let _ = Iterator::next(&mut ());
68 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
70 = help: the trait `Iterator` is not implemented for `()`
72 error[E0277]: `()` is not an iterator
73 --> $DIR/issue-28098.rs:25:28
75 LL | let _ = Iterator::next(&mut ());
76 | -------------- ^^^^^^^ `()` is not an iterator
78 | required by a bound introduced by this call
80 = help: the trait `Iterator` is not implemented for `()`
82 error[E0277]: `()` is not an iterator
83 --> $DIR/issue-28098.rs:25:13
85 LL | let _ = Iterator::next(&mut ());
86 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
88 = help: the trait `Iterator` is not implemented for `()`
90 error[E0277]: `bool` is not an iterator
91 --> $DIR/issue-28098.rs:29:14
93 LL | for _ in false {}
94 | ^^^^^ `bool` is not an iterator
96 = help: the trait `Iterator` is not implemented for `bool`
97 = note: required for `bool` to implement `IntoIterator`
99 error[E0277]: `()` is not an iterator
100 --> $DIR/issue-28098.rs:20:13
102 LL | let _ = Iterator::next(&mut ());
103 | ^^^^^^^^^^^^^^ `()` is not an iterator
105 = help: the trait `Iterator` is not implemented for `()`
107 error: aborting due to 12 previous errors
109 For more information about this error, try `rustc --explain E0277`.