@@ -9,7 +9,7 @@ LL | let _ = Iterator::next(&mut ());
99 = help: the trait `Iterator` is not implemented for `()`
1010
1111error[E0277]: `bool` is not an iterator
12- --> $DIR/issue-28098.rs:6 :14
12+ --> $DIR/issue-28098.rs:5 :14
1313 |
1414LL | for _ in false {}
1515 | ^^^^^ `bool` is not an iterator
@@ -18,7 +18,7 @@ LL | for _ in false {}
1818 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
1919
2020error[E0277]: `()` is not an iterator
21- --> $DIR/issue-28098.rs:9 :28
21+ --> $DIR/issue-28098.rs:8 :28
2222 |
2323LL | let _ = Iterator::next(&mut ());
2424 | -------------- ^^^^^^^ `()` is not an iterator
@@ -28,15 +28,7 @@ LL | let _ = Iterator::next(&mut ());
2828 = help: the trait `Iterator` is not implemented for `()`
2929
3030error[E0277]: `()` is not an iterator
31- --> $DIR/issue-28098.rs:2:13
32- |
33- LL | let _ = Iterator::next(&mut ());
34- | ^^^^^^^^^^^^^^ `()` is not an iterator
35- |
36- = help: the trait `Iterator` is not implemented for `()`
37-
38- error[E0277]: `()` is not an iterator
39- --> $DIR/issue-28098.rs:18:28
31+ --> $DIR/issue-28098.rs:17:28
4032 |
4133LL | let _ = Iterator::next(&mut ());
4234 | -------------- ^^^^^^^ `()` is not an iterator
@@ -46,7 +38,7 @@ LL | let _ = Iterator::next(&mut ());
4638 = help: the trait `Iterator` is not implemented for `()`
4739
4840error[E0277]: `()` is not an iterator
49- --> $DIR/issue-28098.rs:22 :28
41+ --> $DIR/issue-28098.rs:20 :28
5042 |
5143LL | let _ = Iterator::next(&mut ());
5244 | -------------- ^^^^^^^ `()` is not an iterator
@@ -56,22 +48,14 @@ LL | let _ = Iterator::next(&mut ());
5648 = help: the trait `Iterator` is not implemented for `()`
5749
5850error[E0277]: `bool` is not an iterator
59- --> $DIR/issue-28098.rs:25 :14
51+ --> $DIR/issue-28098.rs:23 :14
6052 |
6153LL | for _ in false {}
6254 | ^^^^^ `bool` is not an iterator
6355 |
6456 = help: the trait `Iterator` is not implemented for `bool`
6557 = note: required because of the requirements on the impl of `IntoIterator` for `bool`
6658
67- error[E0277]: `()` is not an iterator
68- --> $DIR/issue-28098.rs:18:13
69- |
70- LL | let _ = Iterator::next(&mut ());
71- | ^^^^^^^^^^^^^^ `()` is not an iterator
72- |
73- = help: the trait `Iterator` is not implemented for `()`
74-
75- error: aborting due to 8 previous errors
59+ error: aborting due to 6 previous errors
7660
7761For more information about this error, try `rustc --explain E0277`.
0 commit comments