@@ -8,16 +8,8 @@ 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-
1911error[E0277]: `bool` is not an iterator
20- --> $DIR/issue-28098.rs:7 :14
12+ --> $DIR/issue-28098.rs:5 :14
2113 |
2214LL | for _ in false {}
2315 | ^^^^^ `bool` is not an iterator
@@ -26,7 +18,7 @@ LL | for _ in false {}
2618 = note: required for `bool` to implement `IntoIterator`
2719
2820error[E0277]: `()` is not an iterator
29- --> $DIR/issue-28098.rs:10 :28
21+ --> $DIR/issue-28098.rs:8 :28
3022 |
3123LL | let _ = Iterator::next(&mut ());
3224 | -------------- ^^^^^^^ `()` is not an iterator
@@ -36,23 +28,7 @@ LL | let _ = Iterator::next(&mut ());
3628 = help: the trait `Iterator` is not implemented for `()`
3729
3830error[E0277]: `()` is not an iterator
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
31+ --> $DIR/issue-28098.rs:17:28
5632 |
5733LL | let _ = Iterator::next(&mut ());
5834 | -------------- ^^^^^^^ `()` is not an iterator
@@ -62,15 +38,7 @@ LL | let _ = Iterator::next(&mut ());
6238 = help: the trait `Iterator` is not implemented for `()`
6339
6440error[E0277]: `()` is not an iterator
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
41+ --> $DIR/issue-28098.rs:20:28
7442 |
7543LL | let _ = Iterator::next(&mut ());
7644 | -------------- ^^^^^^^ `()` is not an iterator
@@ -79,31 +47,15 @@ LL | let _ = Iterator::next(&mut ());
7947 |
8048 = help: the trait `Iterator` is not implemented for `()`
8149
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-
9050error[E0277]: `bool` is not an iterator
91- --> $DIR/issue-28098.rs:29 :14
51+ --> $DIR/issue-28098.rs:23 :14
9252 |
9353LL | for _ in false {}
9454 | ^^^^^ `bool` is not an iterator
9555 |
9656 = help: the trait `Iterator` is not implemented for `bool`
9757 = note: required for `bool` to implement `IntoIterator`
9858
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
59+ error: aborting due to 6 previous errors
10860
10961For more information about this error, try `rustc --explain E0277`.
0 commit comments