fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.4 KiB109 linesraw
1error[E0277]: `()` is not an iterator
2  --> $DIR/issue-28098.rs:2:28
3   |
4LL |     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
11error[E0277]: `()` is not an iterator
12  --> $DIR/issue-28098.rs:2:13
13   |
14LL |     let _ = Iterator::next(&mut ());
15   |             ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
16   |
17   = help: the trait `Iterator` is not implemented for `()`
18
19error[E0277]: `bool` is not an iterator
20  --> $DIR/issue-28098.rs:7:14
21   |
22LL |     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
28error[E0277]: `()` is not an iterator
29  --> $DIR/issue-28098.rs:10:28
30   |
31LL |     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
38error[E0277]: `()` is not an iterator
39  --> $DIR/issue-28098.rs:10:13
40   |
41LL |     let _ = Iterator::next(&mut ());
42   |             ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
43   |
44   = help: the trait `Iterator` is not implemented for `()`
45
46error[E0277]: `()` is not an iterator
47  --> $DIR/issue-28098.rs:2:13
48   |
49LL |     let _ = Iterator::next(&mut ());
50   |             ^^^^^^^^^^^^^^ `()` is not an iterator
51   |
52   = help: the trait `Iterator` is not implemented for `()`
53
54error[E0277]: `()` is not an iterator
55  --> $DIR/issue-28098.rs:20:28
56   |
57LL |     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
64error[E0277]: `()` is not an iterator
65  --> $DIR/issue-28098.rs:20:13
66   |
67LL |     let _ = Iterator::next(&mut ());
68   |             ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
69   |
70   = help: the trait `Iterator` is not implemented for `()`
71
72error[E0277]: `()` is not an iterator
73  --> $DIR/issue-28098.rs:25:28
74   |
75LL |     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
82error[E0277]: `()` is not an iterator
83  --> $DIR/issue-28098.rs:25:13
84   |
85LL |     let _ = Iterator::next(&mut ());
86   |             ^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
87   |
88   = help: the trait `Iterator` is not implemented for `()`
89
90error[E0277]: `bool` is not an iterator
91  --> $DIR/issue-28098.rs:29:14
92   |
93LL |     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
99error[E0277]: `()` is not an iterator
100  --> $DIR/issue-28098.rs:20:13
101   |
102LL |     let _ = Iterator::next(&mut ());
103   |             ^^^^^^^^^^^^^^ `()` is not an iterator
104   |
105   = help: the trait `Iterator` is not implemented for `()`
106
107error: aborting due to 12 previous errors
108
109For more information about this error, try `rustc --explain E0277`.