@@ -8,16 +8,8 @@ LL | let _ = Iterator::next(&mut ());
8
8
|
9
9
= help: the trait `Iterator` is not implemented for `()`
10
10
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
-
19
11
error[E0277]: `bool` is not an iterator
20
- --> $DIR/issue-28098.rs:7 :14
12
+ --> $DIR/issue-28098.rs:5 :14
21
13
|
22
14
LL | for _ in false {}
23
15
| ^^^^^ `bool` is not an iterator
@@ -26,7 +18,7 @@ LL | for _ in false {}
26
18
= note: required for `bool` to implement `IntoIterator`
27
19
28
20
error[E0277]: `()` is not an iterator
29
- --> $DIR/issue-28098.rs:10 :28
21
+ --> $DIR/issue-28098.rs:8 :28
30
22
|
31
23
LL | let _ = Iterator::next(&mut ());
32
24
| -------------- ^^^^^^^ `()` is not an iterator
@@ -36,23 +28,7 @@ LL | let _ = Iterator::next(&mut ());
36
28
= help: the trait `Iterator` is not implemented for `()`
37
29
38
30
error[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
56
32
|
57
33
LL | let _ = Iterator::next(&mut ());
58
34
| -------------- ^^^^^^^ `()` is not an iterator
@@ -62,15 +38,7 @@ LL | let _ = Iterator::next(&mut ());
62
38
= help: the trait `Iterator` is not implemented for `()`
63
39
64
40
error[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
74
42
|
75
43
LL | let _ = Iterator::next(&mut ());
76
44
| -------------- ^^^^^^^ `()` is not an iterator
@@ -79,31 +47,15 @@ LL | let _ = Iterator::next(&mut ());
79
47
|
80
48
= help: the trait `Iterator` is not implemented for `()`
81
49
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
-
90
50
error[E0277]: `bool` is not an iterator
91
- --> $DIR/issue-28098.rs:29 :14
51
+ --> $DIR/issue-28098.rs:23 :14
92
52
|
93
53
LL | for _ in false {}
94
54
| ^^^^^ `bool` is not an iterator
95
55
|
96
56
= help: the trait `Iterator` is not implemented for `bool`
97
57
= note: required for `bool` to implement `IntoIterator`
98
58
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
108
60
109
61
For more information about this error, try `rustc --explain E0277`.
0 commit comments