]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/issue-28098.stderr
Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot
[rust.git] / tests / ui / iterators / issue-28098.stderr
1 error[E0277]: `()` is not an iterator
2   --> $DIR/issue-28098.rs:2:28
3    |
4 LL |     let _ = Iterator::next(&mut ());
5    |             -------------- ^^^^^^^ `()` is not an iterator
6    |             |
7    |             required by a bound introduced by this call
8    |
9    = help: the trait `Iterator` is not implemented for `()`
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 error[E0277]: `bool` is not an iterator
20   --> $DIR/issue-28098.rs:7:14
21    |
22 LL |     for _ in false {}
23    |              ^^^^^ `bool` is not an iterator
24    |
25    = help: the trait `Iterator` is not implemented for `bool`
26    = note: required for `bool` to implement `IntoIterator`
27
28 error[E0277]: `()` is not an iterator
29   --> $DIR/issue-28098.rs:10:28
30    |
31 LL |     let _ = Iterator::next(&mut ());
32    |             -------------- ^^^^^^^ `()` is not an iterator
33    |             |
34    |             required by a bound introduced by this call
35    |
36    = help: the trait `Iterator` is not implemented for `()`
37
38 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
56    |
57 LL |     let _ = Iterator::next(&mut ());
58    |             -------------- ^^^^^^^ `()` is not an iterator
59    |             |
60    |             required by a bound introduced by this call
61    |
62    = help: the trait `Iterator` is not implemented for `()`
63
64 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
74    |
75 LL |     let _ = Iterator::next(&mut ());
76    |             -------------- ^^^^^^^ `()` is not an iterator
77    |             |
78    |             required by a bound introduced by this call
79    |
80    = help: the trait `Iterator` is not implemented for `()`
81
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 error[E0277]: `bool` is not an iterator
91   --> $DIR/issue-28098.rs:29:14
92    |
93 LL |     for _ in false {}
94    |              ^^^^^ `bool` is not an iterator
95    |
96    = help: the trait `Iterator` is not implemented for `bool`
97    = note: required for `bool` to implement `IntoIterator`
98
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
108
109 For more information about this error, try `rustc --explain E0277`.