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 = help: the trait `Iterator` is not implemented for `()`
8 note: required by `std::iter::Iterator::next`
9 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
11 LL | fn next(&mut self) -> Option<Self::Item>;
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error[E0277]: `bool` is not an iterator
15 --> $DIR/issue-28098.rs:6:14
17 LL | for _ in false {}
18 | ^^^^^ `bool` is not an iterator
20 = help: the trait `Iterator` is not implemented for `bool`
21 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
22 note: required by `into_iter`
23 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
25 LL | fn into_iter(self) -> Self::IntoIter;
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 error[E0277]: `()` is not an iterator
29 --> $DIR/issue-28098.rs:9:28
31 LL | let _ = Iterator::next(&mut ());
32 | ^^^^^^^ `()` is not an iterator
34 = help: the trait `Iterator` is not implemented for `()`
35 note: required by `std::iter::Iterator::next`
36 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
38 LL | fn next(&mut self) -> Option<Self::Item>;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 error[E0277]: `()` is not an iterator
42 --> $DIR/issue-28098.rs:2:13
44 LL | let _ = Iterator::next(&mut ());
45 | ^^^^^^^^^^^^^^ `()` is not an iterator
47 = help: the trait `Iterator` is not implemented for `()`
49 error[E0277]: `()` is not an iterator
50 --> $DIR/issue-28098.rs:18:28
52 LL | let _ = Iterator::next(&mut ());
53 | ^^^^^^^ `()` is not an iterator
55 = help: the trait `Iterator` is not implemented for `()`
56 note: required by `std::iter::Iterator::next`
57 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
59 LL | fn next(&mut self) -> Option<Self::Item>;
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
62 error[E0277]: `()` is not an iterator
63 --> $DIR/issue-28098.rs:22:28
65 LL | let _ = Iterator::next(&mut ());
66 | ^^^^^^^ `()` is not an iterator
68 = help: the trait `Iterator` is not implemented for `()`
69 note: required by `std::iter::Iterator::next`
70 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
72 LL | fn next(&mut self) -> Option<Self::Item>;
73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75 error[E0277]: `bool` is not an iterator
76 --> $DIR/issue-28098.rs:25:14
78 LL | for _ in false {}
79 | ^^^^^ `bool` is not an iterator
81 = help: the trait `Iterator` is not implemented for `bool`
82 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
83 note: required by `into_iter`
84 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
86 LL | fn into_iter(self) -> Self::IntoIter;
87 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 error[E0277]: `()` is not an iterator
90 --> $DIR/issue-28098.rs:18:13
92 LL | let _ = Iterator::next(&mut ());
93 | ^^^^^^^^^^^^^^ `()` is not an iterator
95 = help: the trait `Iterator` is not implemented for `()`
97 error: aborting due to 8 previous errors
99 For more information about this error, try `rustc --explain E0277`.