]> git.lizzy.rs Git - rust.git/blob - src/test/ui/iterators/issue-28098.stderr
Auto merge of #98109 - nikomatsakis:issue-98095, r=jackh726
[rust.git] / src / test / 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]: `bool` is not an iterator
12   --> $DIR/issue-28098.rs:6:14
13    |
14 LL |     for _ in false {}
15    |              ^^^^^ `bool` is not an iterator
16    |
17    = help: the trait `Iterator` is not implemented for `bool`
18    = note: required because of the requirements on the impl of `IntoIterator` for `bool`
19
20 error[E0277]: `()` is not an iterator
21   --> $DIR/issue-28098.rs:9:28
22    |
23 LL |     let _ = Iterator::next(&mut ());
24    |             -------------- ^^^^^^^ `()` is not an iterator
25    |             |
26    |             required by a bound introduced by this call
27    |
28    = help: the trait `Iterator` is not implemented for `()`
29
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
40    |
41 LL |     let _ = Iterator::next(&mut ());
42    |             -------------- ^^^^^^^ `()` is not an iterator
43    |             |
44    |             required by a bound introduced by this call
45    |
46    = help: the trait `Iterator` is not implemented for `()`
47
48 error[E0277]: `()` is not an iterator
49   --> $DIR/issue-28098.rs:22:28
50    |
51 LL |     let _ = Iterator::next(&mut ());
52    |             -------------- ^^^^^^^ `()` is not an iterator
53    |             |
54    |             required by a bound introduced by this call
55    |
56    = help: the trait `Iterator` is not implemented for `()`
57
58 error[E0277]: `bool` is not an iterator
59   --> $DIR/issue-28098.rs:25:14
60    |
61 LL |     for _ in false {}
62    |              ^^^^^ `bool` is not an iterator
63    |
64    = help: the trait `Iterator` is not implemented for `bool`
65    = note: required because of the requirements on the impl of `IntoIterator` for `bool`
66
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
76
77 For more information about this error, try `rustc --explain E0277`.