@@ -8,8 +8,16 @@ LL | let _ = Iterator::next(&mut ());
88 |
99 = help: the trait `Iterator` is not implemented for `()`
1010
11+ error[E0277]: `()` is not an iterator
12+ --> $DIR/issue-28098.rs:2:13
13+ |
14+ LL | let _ = Iterator::next(&mut ());
15+ | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
16+ |
17+ = help: the trait `Iterator` is not implemented for `()`
18+
1119error[E0277]: `bool` is not an iterator
12- --> $DIR/issue-28098.rs:5 :14
20+ --> $DIR/issue-28098.rs:7 :14
1321 |
1422LL | for _ in false {}
1523 | ^^^^^ `bool` is not an iterator
@@ -18,7 +26,7 @@ LL | for _ in false {}
1826 = note: required for `bool` to implement `IntoIterator`
1927
2028error[E0277]: `()` is not an iterator
21- --> $DIR/issue-28098.rs:8 :28
29+ --> $DIR/issue-28098.rs:10 :28
2230 |
2331LL | let _ = Iterator::next(&mut ());
2432 | -------------- ^^^^^^^ `()` is not an iterator
@@ -28,7 +36,23 @@ LL | let _ = Iterator::next(&mut ());
2836 = help: the trait `Iterator` is not implemented for `()`
2937
3038error[E0277]: `()` is not an iterator
31- --> $DIR/issue-28098.rs:17:28
39+ --> $DIR/issue-28098.rs:10:13
40+ |
41+ LL | let _ = Iterator::next(&mut ());
42+ | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
43+ |
44+ = help: the trait `Iterator` is not implemented for `()`
45+
46+ error[E0277]: `()` is not an iterator
47+ --> $DIR/issue-28098.rs:2:13
48+ |
49+ LL | let _ = Iterator::next(&mut ());
50+ | ^^^^^^^^^^^^^^ `()` is not an iterator
51+ |
52+ = help: the trait `Iterator` is not implemented for `()`
53+
54+ error[E0277]: `()` is not an iterator
55+ --> $DIR/issue-28098.rs:20:28
3256 |
3357LL | let _ = Iterator::next(&mut ());
3458 | -------------- ^^^^^^^ `()` is not an iterator
@@ -38,7 +62,15 @@ LL | let _ = Iterator::next(&mut ());
3862 = help: the trait `Iterator` is not implemented for `()`
3963
4064error[E0277]: `()` is not an iterator
41- --> $DIR/issue-28098.rs:20:28
65+ --> $DIR/issue-28098.rs:20:13
66+ |
67+ LL | let _ = Iterator::next(&mut ());
68+ | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
69+ |
70+ = help: the trait `Iterator` is not implemented for `()`
71+
72+ error[E0277]: `()` is not an iterator
73+ --> $DIR/issue-28098.rs:25:28
4274 |
4375LL | let _ = Iterator::next(&mut ());
4476 | -------------- ^^^^^^^ `()` is not an iterator
@@ -47,15 +79,31 @@ LL | let _ = Iterator::next(&mut ());
4779 |
4880 = help: the trait `Iterator` is not implemented for `()`
4981
82+ error[E0277]: `()` is not an iterator
83+ --> $DIR/issue-28098.rs:25:13
84+ |
85+ LL | let _ = Iterator::next(&mut ());
86+ | ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
87+ |
88+ = help: the trait `Iterator` is not implemented for `()`
89+
5090error[E0277]: `bool` is not an iterator
51- --> $DIR/issue-28098.rs:23 :14
91+ --> $DIR/issue-28098.rs:29 :14
5292 |
5393LL | for _ in false {}
5494 | ^^^^^ `bool` is not an iterator
5595 |
5696 = help: the trait `Iterator` is not implemented for `bool`
5797 = note: required for `bool` to implement `IntoIterator`
5898
59- error: aborting due to 6 previous errors
99+ error[E0277]: `()` is not an iterator
100+ --> $DIR/issue-28098.rs:20:13
101+ |
102+ LL | let _ = Iterator::next(&mut ());
103+ | ^^^^^^^^^^^^^^ `()` is not an iterator
104+ |
105+ = help: the trait `Iterator` is not implemented for `()`
106+
107+ error: aborting due to 12 previous errors
60108
61109For more information about this error, try `rustc --explain E0277`.
0 commit comments