|
1 | | -error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied |
| 1 | +error[E0277]: `()` is not an iterator |
2 | 2 | --> $DIR/issue-28098.rs:12:13 |
3 | 3 | | |
4 | 4 | LL | let _ = Iterator::next(&mut ()); |
5 | | - | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method |
| 5 | + | ^^^^^^^^^^^^^^ `()` is not an iterator |
6 | 6 | | |
7 | 7 | = help: the trait `std::iter::Iterator` is not implemented for `()` |
8 | 8 | = note: required by `std::iter::Iterator::next` |
9 | 9 |
|
10 | | -error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied |
| 10 | +error[E0277]: `bool` is not an iterator |
11 | 11 | --> $DIR/issue-28098.rs:15:14 |
12 | 12 | | |
13 | 13 | LL | for _ in false {} |
14 | | - | ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method |
| 14 | + | ^^^^^ `bool` is not an iterator |
15 | 15 | | |
16 | 16 | = help: the trait `std::iter::Iterator` is not implemented for `bool` |
17 | 17 | = note: required by `std::iter::IntoIterator::into_iter` |
18 | 18 |
|
19 | | -error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied |
| 19 | +error[E0277]: `()` is not an iterator |
20 | 20 | --> $DIR/issue-28098.rs:18:13 |
21 | 21 | | |
22 | 22 | LL | let _ = Iterator::next(&mut ()); |
23 | | - | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method |
| 23 | + | ^^^^^^^^^^^^^^ `()` is not an iterator |
24 | 24 | | |
25 | 25 | = help: the trait `std::iter::Iterator` is not implemented for `()` |
26 | 26 | = note: required by `std::iter::Iterator::next` |
27 | 27 |
|
28 | | -error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied |
| 28 | +error[E0277]: `()` is not an iterator |
29 | 29 | --> $DIR/issue-28098.rs:27:13 |
30 | 30 | | |
31 | 31 | LL | let _ = Iterator::next(&mut ()); |
32 | | - | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method |
| 32 | + | ^^^^^^^^^^^^^^ `()` is not an iterator |
33 | 33 | | |
34 | 34 | = help: the trait `std::iter::Iterator` is not implemented for `()` |
35 | 35 | = note: required by `std::iter::Iterator::next` |
36 | 36 |
|
37 | | -error[E0277]: the trait bound `(): std::iter::Iterator` is not satisfied |
| 37 | +error[E0277]: `()` is not an iterator |
38 | 38 | --> $DIR/issue-28098.rs:30:13 |
39 | 39 | | |
40 | 40 | LL | let _ = Iterator::next(&mut ()); |
41 | | - | ^^^^^^^^^^^^^^ `()` is not an iterator; maybe try calling `.iter()` or a similar method |
| 41 | + | ^^^^^^^^^^^^^^ `()` is not an iterator |
42 | 42 | | |
43 | 43 | = help: the trait `std::iter::Iterator` is not implemented for `()` |
44 | 44 | = note: required by `std::iter::Iterator::next` |
45 | 45 |
|
46 | | -error[E0277]: the trait bound `bool: std::iter::Iterator` is not satisfied |
| 46 | +error[E0277]: `bool` is not an iterator |
47 | 47 | --> $DIR/issue-28098.rs:33:14 |
48 | 48 | | |
49 | 49 | LL | for _ in false {} |
50 | | - | ^^^^^ `bool` is not an iterator; maybe try calling `.iter()` or a similar method |
| 50 | + | ^^^^^ `bool` is not an iterator |
51 | 51 | | |
52 | 52 | = help: the trait `std::iter::Iterator` is not implemented for `bool` |
53 | 53 | = note: required by `std::iter::IntoIterator::into_iter` |
|
0 commit comments