@@ -9,7 +9,7 @@ LL | let _ = Iterator::next(&mut ());
9
9
= help: the trait `Iterator` is not implemented for `()`
10
10
11
11
error[E0277]: `bool` is not an iterator
12
- --> $DIR/issue-28098.rs:6 :14
12
+ --> $DIR/issue-28098.rs:5 :14
13
13
|
14
14
LL | for _ in false {}
15
15
| ^^^^^ `bool` is not an iterator
@@ -18,7 +18,7 @@ LL | for _ in false {}
18
18
= note: required because of the requirements on the impl of `IntoIterator` for `bool`
19
19
20
20
error[E0277]: `()` is not an iterator
21
- --> $DIR/issue-28098.rs:9 :28
21
+ --> $DIR/issue-28098.rs:8 :28
22
22
|
23
23
LL | let _ = Iterator::next(&mut ());
24
24
| -------------- ^^^^^^^ `()` is not an iterator
@@ -28,15 +28,7 @@ LL | let _ = Iterator::next(&mut ());
28
28
= help: the trait `Iterator` is not implemented for `()`
29
29
30
30
error[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
40
32
|
41
33
LL | let _ = Iterator::next(&mut ());
42
34
| -------------- ^^^^^^^ `()` is not an iterator
@@ -46,7 +38,7 @@ LL | let _ = Iterator::next(&mut ());
46
38
= help: the trait `Iterator` is not implemented for `()`
47
39
48
40
error[E0277]: `()` is not an iterator
49
- --> $DIR/issue-28098.rs:22 :28
41
+ --> $DIR/issue-28098.rs:20 :28
50
42
|
51
43
LL | let _ = Iterator::next(&mut ());
52
44
| -------------- ^^^^^^^ `()` is not an iterator
@@ -56,22 +48,14 @@ LL | let _ = Iterator::next(&mut ());
56
48
= help: the trait `Iterator` is not implemented for `()`
57
49
58
50
error[E0277]: `bool` is not an iterator
59
- --> $DIR/issue-28098.rs:25 :14
51
+ --> $DIR/issue-28098.rs:23 :14
60
52
|
61
53
LL | for _ in false {}
62
54
| ^^^^^ `bool` is not an iterator
63
55
|
64
56
= help: the trait `Iterator` is not implemented for `bool`
65
57
= note: required because of the requirements on the impl of `IntoIterator` for `bool`
66
58
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
76
60
77
61
For more information about this error, try `rustc --explain E0277`.
0 commit comments