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