fork/rust

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

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

master
7.6 KiB242 linesraw
1error[E0408]: variable `beta` is not bound in all patterns
2  --> $DIR/missing-bindings.rs:19:10
3   |
4LL |     let (alpha | beta | charlie) = alpha;
5   |          ^^^^^   ----   ^^^^^^^ pattern doesn't bind `beta`
6   |          |       |
7   |          |       variable not in all patterns
8   |          pattern doesn't bind `beta`
9
10error[E0408]: variable `beta` is not bound in all patterns
11  --> $DIR/missing-bindings.rs:21:14
12   |
13LL |         Some(alpha | beta) => {}
14   |              ^^^^^   ---- variable not in all patterns
15   |              |
16   |              pattern doesn't bind `beta`
17
18error[E0408]: variable `a` is not bound in all patterns
19  --> $DIR/missing-bindings.rs:33:20
20   |
21LL |     let (A(a, _) | _) = X;
22   |            -       ^ pattern doesn't bind `a`
23   |            |
24   |            variable not in all patterns
25
26error[E0408]: variable `a` is not bound in all patterns
27  --> $DIR/missing-bindings.rs:34:10
28   |
29LL |     let (_ | B(a)) = X;
30   |          ^     - variable not in all patterns
31   |          |
32   |          pattern doesn't bind `a`
33
34error[E0408]: variable `a` is not bound in all patterns
35  --> $DIR/missing-bindings.rs:35:10
36   |
37LL |     let (A(..) | B(a)) = X;
38   |          ^^^^^     - variable not in all patterns
39   |          |
40   |          pattern doesn't bind `a`
41
42error[E0408]: variable `a` is not bound in all patterns
43  --> $DIR/missing-bindings.rs:36:20
44   |
45LL |     let (A(a, _) | B(_)) = X;
46   |            -       ^^^^ pattern doesn't bind `a`
47   |            |
48   |            variable not in all patterns
49
50error[E0408]: variable `a` is not bound in all patterns
51  --> $DIR/missing-bindings.rs:37:20
52   |
53LL |     let (A(_, a) | B(_)) = X;
54   |               -    ^^^^ pattern doesn't bind `a`
55   |               |
56   |               variable not in all patterns
57
58error[E0408]: variable `b` is not bound in all patterns
59  --> $DIR/missing-bindings.rs:38:20
60   |
61LL |     let (A(a, b) | B(a)) = X;
62   |               -    ^^^^ pattern doesn't bind `b`
63   |               |
64   |               variable not in all patterns
65
66error[E0408]: variable `a` is not bound in all patterns
67  --> $DIR/missing-bindings.rs:42:10
68   |
69LL |     let (A(A(..) | B(_), _) | B(a)) = Y;
70   |          ^^^^^^^^^^^^^^^^^^     - variable not in all patterns
71   |          |
72   |          pattern doesn't bind `a`
73
74error[E0408]: variable `a` is not bound in all patterns
75  --> $DIR/missing-bindings.rs:43:12
76   |
77LL |     let (A(A(..) | B(a), _) | B(A(a, _) | B(a))) = Y;
78   |            ^^^^^     - variable not in all patterns
79   |            |
80   |            pattern doesn't bind `a`
81
82error[E0408]: variable `c` is not bound in all patterns
83  --> $DIR/missing-bindings.rs:45:12
84   |
85LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
86   |            ^^^^^^^     - variable not in all patterns
87   |            |
88   |            pattern doesn't bind `c`
89
90error[E0408]: variable `a` is not bound in all patterns
91  --> $DIR/missing-bindings.rs:45:22
92   |
93LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
94   |              -       ^^^^ pattern doesn't bind `a`
95   |              |
96   |              variable not in all patterns
97
98error[E0408]: variable `b` is not bound in all patterns
99  --> $DIR/missing-bindings.rs:45:22
100   |
101LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
102   |                 -    ^^^^ pattern doesn't bind `b`
103   |                 |
104   |                 variable not in all patterns
105
106error[E0408]: variable `e` is not bound in all patterns
107  --> $DIR/missing-bindings.rs:45:10
108   |
109LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
110   |          ^^^^^^^^^^^^^^^^^^^^     - variable not in all patterns
111   |          |
112   |          pattern doesn't bind `e`
113
114error[E0408]: variable `a` is not bound in all patterns
115  --> $DIR/missing-bindings.rs:45:33
116   |
117LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
118   |              -                  ^^^^ pattern doesn't bind `a`
119   |              |
120   |              variable not in all patterns
121
122error[E0408]: variable `b` is not bound in all patterns
123  --> $DIR/missing-bindings.rs:45:33
124   |
125LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
126   |                 -               ^^^^ pattern doesn't bind `b`
127   |                 |
128   |                 variable not in all patterns
129
130error[E0408]: variable `c` is not bound in all patterns
131  --> $DIR/missing-bindings.rs:45:33
132   |
133LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
134   |                        -        ^^^^ pattern doesn't bind `c`
135   |                        |
136   |                        variable not in all patterns
137
138error[E0408]: variable `d` is not bound in all patterns
139  --> $DIR/missing-bindings.rs:45:33
140   |
141LL |     let (A(A(a, b) | B(c), d) | B(e)) = Y;
142   |                            -    ^^^^ pattern doesn't bind `d`
143   |                            |
144   |                            variable not in all patterns
145
146error[E0408]: variable `a` is not bound in all patterns
147  --> $DIR/missing-bindings.rs:61:29
148   |
149LL |                     Ok(a) | Err(_),
150   |                        -    ^^^^^^ pattern doesn't bind `a`
151   |                        |
152   |                        variable not in all patterns
153
154error[E0408]: variable `b` is not bound in all patterns
155  --> $DIR/missing-bindings.rs:68:21
156   |
157LL |                     A(_, a) |
158   |                     ^^^^^^^ pattern doesn't bind `b`
159LL |                     B(b),
160   |                       - variable not in all patterns
161
162error[E0408]: variable `a` is not bound in all patterns
163  --> $DIR/missing-bindings.rs:69:21
164   |
165LL |                     A(_, a) |
166   |                          - variable not in all patterns
167LL |                     B(b),
168   |                     ^^^^ pattern doesn't bind `a`
169
170error[E0408]: variable `a` is not bound in all patterns
171  --> $DIR/missing-bindings.rs:72:17
172   |
173LL |                     A(_, a) |
174   |                          - variable not in all patterns
175...
176LL |                 B(_)
177   |                 ^^^^ pattern doesn't bind `a`
178
179error[E0408]: variable `b` is not bound in all patterns
180  --> $DIR/missing-bindings.rs:72:17
181   |
182LL |                     B(b),
183   |                       - variable not in all patterns
184...
185LL |                 B(_)
186   |                 ^^^^ pattern doesn't bind `b`
187
188error[E0408]: variable `b` is not bound in all patterns
189  --> $DIR/missing-bindings.rs:57:13
190   |
191LL | /             V1(
192LL | |
193LL | |
194LL | |                 A(
195...  |
196LL | |                 B(Ok(a) | Err(a))
197LL | |             ) |
198   | |_____________^ pattern doesn't bind `b`
199...
200LL |                       B(b),
201   |                         - variable not in all patterns
202...
203LL |               V3(c),
204   |               ^^^^^ pattern doesn't bind `b`
205
206error[E0408]: variable `c` is not bound in all patterns
207  --> $DIR/missing-bindings.rs:57:13
208   |
209LL | /             V1(
210LL | |
211LL | |
212LL | |                 A(
213...  |
214LL | |                 B(Ok(a) | Err(a))
215LL | |             ) |
216   | |_____________^ pattern doesn't bind `c`
217LL | /             V2(
218LL | |                 A(
219LL | |                     A(_, a) |
220LL | |                     B(b),
221...  |
222LL | |
223LL | |             ) |
224   | |_____________^ pattern doesn't bind `c`
225LL |               V3(c),
226   |                  - variable not in all patterns
227
228error[E0408]: variable `a` is not bound in all patterns
229  --> $DIR/missing-bindings.rs:76:13
230   |
231LL |                 B(Ok(a) | Err(a))
232   |                               - variable not in all patterns
233...
234LL |                     A(_, a) |
235   |                          - variable not in all patterns
236...
237LL |             V3(c),
238   |             ^^^^^ pattern doesn't bind `a`
239
240error: aborting due to 26 previous errors
241
242For more information about this error, try `rustc --explain E0408`.