]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28098.stderr
Avoid codegen for Result::into_ok in lang_start
[rust.git] / src / test / ui / issues / 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    = help: the trait `Iterator` is not implemented for `()`
8 note: required by `std::iter::Iterator::next`
9   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
10    |
11 LL |     fn next(&mut self) -> Option<Self::Item>;
12    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error[E0277]: `bool` is not an iterator
15   --> $DIR/issue-28098.rs:6:14
16    |
17 LL |     for _ in false {}
18    |              ^^^^^ `bool` is not an iterator
19    |
20    = help: the trait `Iterator` is not implemented for `bool`
21    = note: required because of the requirements on the impl of `IntoIterator` for `bool`
22 note: required by `into_iter`
23   --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
24    |
25 LL |     fn into_iter(self) -> Self::IntoIter;
26    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
28 error[E0277]: `()` is not an iterator
29   --> $DIR/issue-28098.rs:9:28
30    |
31 LL |     let _ = Iterator::next(&mut ());
32    |                            ^^^^^^^ `()` is not an iterator
33    |
34    = help: the trait `Iterator` is not implemented for `()`
35 note: required by `std::iter::Iterator::next`
36   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
37    |
38 LL |     fn next(&mut self) -> Option<Self::Item>;
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
41 error[E0277]: `()` is not an iterator
42   --> $DIR/issue-28098.rs:2:13
43    |
44 LL |     let _ = Iterator::next(&mut ());
45    |             ^^^^^^^^^^^^^^ `()` is not an iterator
46    |
47    = help: the trait `Iterator` is not implemented for `()`
48
49 error[E0277]: `()` is not an iterator
50   --> $DIR/issue-28098.rs:18:28
51    |
52 LL |     let _ = Iterator::next(&mut ());
53    |                            ^^^^^^^ `()` is not an iterator
54    |
55    = help: the trait `Iterator` is not implemented for `()`
56 note: required by `std::iter::Iterator::next`
57   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
58    |
59 LL |     fn next(&mut self) -> Option<Self::Item>;
60    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61
62 error[E0277]: `()` is not an iterator
63   --> $DIR/issue-28098.rs:22:28
64    |
65 LL |     let _ = Iterator::next(&mut ());
66    |                            ^^^^^^^ `()` is not an iterator
67    |
68    = help: the trait `Iterator` is not implemented for `()`
69 note: required by `std::iter::Iterator::next`
70   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
71    |
72 LL |     fn next(&mut self) -> Option<Self::Item>;
73    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
75 error[E0277]: `bool` is not an iterator
76   --> $DIR/issue-28098.rs:25:14
77    |
78 LL |     for _ in false {}
79    |              ^^^^^ `bool` is not an iterator
80    |
81    = help: the trait `Iterator` is not implemented for `bool`
82    = note: required because of the requirements on the impl of `IntoIterator` for `bool`
83 note: required by `into_iter`
84   --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
85    |
86 LL |     fn into_iter(self) -> Self::IntoIter;
87    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88
89 error[E0277]: `()` is not an iterator
90   --> $DIR/issue-28098.rs:18:13
91    |
92 LL |     let _ = Iterator::next(&mut ());
93    |             ^^^^^^^^^^^^^^ `()` is not an iterator
94    |
95    = help: the trait `Iterator` is not implemented for `()`
96
97 error: aborting due to 8 previous errors
98
99 For more information about this error, try `rustc --explain E0277`.