]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0507]: cannot move out of `s.0` which is behind a shared reference |
48663c56 | 2 | --> $DIR/simple.rs:38:17 |
b7449926 XL |
3 | | |
4 | LL | let X(_t) = *s; | |
dc9dc135 XL |
5 | | -- ^^ help: consider borrowing here: `&*s` |
6 | | | | |
b7449926 | 7 | | data moved here |
dc9dc135 | 8 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 9 | |
dc9dc135 | 10 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 11 | --> $DIR/simple.rs:42:30 |
b7449926 XL |
12 | | |
13 | LL | if let Either::One(_t) = *r { } | |
dc9dc135 XL |
14 | | -- ^^ help: consider borrowing here: `&*r` |
15 | | | | |
b7449926 | 16 | | data moved here |
dc9dc135 | 17 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 18 | |
dc9dc135 | 19 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 20 | --> $DIR/simple.rs:46:33 |
b7449926 XL |
21 | | |
22 | LL | while let Either::One(_t) = *r { } | |
dc9dc135 XL |
23 | | -- ^^ help: consider borrowing here: `&*r` |
24 | | | | |
b7449926 | 25 | | data moved here |
dc9dc135 | 26 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 27 | |
dc9dc135 | 28 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 29 | --> $DIR/simple.rs:50:11 |
b7449926 XL |
30 | | |
31 | LL | match *r { | |
dc9dc135 | 32 | | ^^ help: consider borrowing here: `&*r` |
b7449926 XL |
33 | ... |
34 | LL | Either::One(_t) | |
dc9dc135 XL |
35 | | -- |
36 | | | | |
37 | | data moved here | |
38 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 39 | |
dc9dc135 | 40 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 41 | --> $DIR/simple.rs:57:11 |
b7449926 XL |
42 | | |
43 | LL | match *r { | |
dc9dc135 | 44 | | ^^ help: consider borrowing here: `&*r` |
b7449926 XL |
45 | ... |
46 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
47 | | -- |
48 | | | | |
49 | | data moved here | |
50 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 51 | |
dc9dc135 | 52 | error[E0507]: cannot move out of `sm.0` which is behind a mutable reference |
48663c56 | 53 | --> $DIR/simple.rs:66:17 |
b7449926 XL |
54 | | |
55 | LL | let X(_t) = *sm; | |
dc9dc135 XL |
56 | | -- ^^^ help: consider borrowing here: `&*sm` |
57 | | | | |
b7449926 | 58 | | data moved here |
dc9dc135 | 59 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 60 | |
dc9dc135 | 61 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 62 | --> $DIR/simple.rs:70:30 |
b7449926 XL |
63 | | |
64 | LL | if let Either::One(_t) = *rm { } | |
dc9dc135 XL |
65 | | -- ^^^ help: consider borrowing here: `&*rm` |
66 | | | | |
b7449926 | 67 | | data moved here |
dc9dc135 | 68 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 69 | |
dc9dc135 | 70 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 71 | --> $DIR/simple.rs:74:33 |
b7449926 XL |
72 | | |
73 | LL | while let Either::One(_t) = *rm { } | |
dc9dc135 XL |
74 | | -- ^^^ help: consider borrowing here: `&*rm` |
75 | | | | |
b7449926 | 76 | | data moved here |
dc9dc135 | 77 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 78 | |
dc9dc135 | 79 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 80 | --> $DIR/simple.rs:78:11 |
b7449926 XL |
81 | | |
82 | LL | match *rm { | |
dc9dc135 | 83 | | ^^^ help: consider borrowing here: `&*rm` |
b7449926 XL |
84 | ... |
85 | LL | Either::One(_t) | |
dc9dc135 XL |
86 | | -- |
87 | | | | |
88 | | data moved here | |
89 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 90 | |
dc9dc135 | 91 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 92 | --> $DIR/simple.rs:85:11 |
b7449926 XL |
93 | | |
94 | LL | match *rm { | |
dc9dc135 | 95 | | ^^^ help: consider borrowing here: `&*rm` |
b7449926 XL |
96 | ... |
97 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
98 | | -- |
99 | | | | |
100 | | data moved here | |
101 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 102 | |
dc9dc135 | 103 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 104 | --> $DIR/simple.rs:93:11 |
b7449926 XL |
105 | | |
106 | LL | match *rm { | |
dc9dc135 | 107 | | ^^^ help: consider borrowing here: `&*rm` |
b7449926 XL |
108 | ... |
109 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
110 | | -- |
111 | | | | |
112 | | data moved here | |
113 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 114 | |
1b1a35ee | 115 | error[E0507]: cannot move out of index of `Vec<X>` |
48663c56 | 116 | --> $DIR/simple.rs:102:17 |
b7449926 XL |
117 | | |
118 | LL | let X(_t) = vs[0]; | |
dc9dc135 XL |
119 | | -- ^^^^^ help: consider borrowing here: `&vs[0]` |
120 | | | | |
b7449926 | 121 | | data moved here |
dc9dc135 | 122 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 123 | |
1b1a35ee | 124 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 125 | --> $DIR/simple.rs:106:30 |
b7449926 XL |
126 | | |
127 | LL | if let Either::One(_t) = vr[0] { } | |
dc9dc135 XL |
128 | | -- ^^^^^ help: consider borrowing here: `&vr[0]` |
129 | | | | |
b7449926 | 130 | | data moved here |
dc9dc135 | 131 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 132 | |
1b1a35ee | 133 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 134 | --> $DIR/simple.rs:110:33 |
b7449926 XL |
135 | | |
136 | LL | while let Either::One(_t) = vr[0] { } | |
dc9dc135 XL |
137 | | -- ^^^^^ help: consider borrowing here: `&vr[0]` |
138 | | | | |
b7449926 | 139 | | data moved here |
dc9dc135 | 140 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 141 | |
1b1a35ee | 142 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 143 | --> $DIR/simple.rs:114:11 |
b7449926 XL |
144 | | |
145 | LL | match vr[0] { | |
dc9dc135 | 146 | | ^^^^^ help: consider borrowing here: `&vr[0]` |
b7449926 XL |
147 | ... |
148 | LL | Either::One(_t) | |
dc9dc135 XL |
149 | | -- |
150 | | | | |
151 | | data moved here | |
152 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 153 | |
1b1a35ee | 154 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 155 | --> $DIR/simple.rs:121:11 |
b7449926 XL |
156 | | |
157 | LL | match vr[0] { | |
dc9dc135 | 158 | | ^^^^^ help: consider borrowing here: `&vr[0]` |
b7449926 XL |
159 | ... |
160 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
161 | | -- |
162 | | | | |
163 | | data moved here | |
164 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 165 | |
1b1a35ee | 166 | error[E0507]: cannot move out of index of `Vec<X>` |
48663c56 | 167 | --> $DIR/simple.rs:130:17 |
b7449926 XL |
168 | | |
169 | LL | let X(_t) = vsm[0]; | |
dc9dc135 XL |
170 | | -- ^^^^^^ help: consider borrowing here: `&vsm[0]` |
171 | | | | |
b7449926 | 172 | | data moved here |
dc9dc135 | 173 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 174 | |
1b1a35ee | 175 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 176 | --> $DIR/simple.rs:134:30 |
b7449926 XL |
177 | | |
178 | LL | if let Either::One(_t) = vrm[0] { } | |
dc9dc135 XL |
179 | | -- ^^^^^^ help: consider borrowing here: `&vrm[0]` |
180 | | | | |
b7449926 | 181 | | data moved here |
dc9dc135 | 182 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 183 | |
1b1a35ee | 184 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 185 | --> $DIR/simple.rs:138:33 |
b7449926 XL |
186 | | |
187 | LL | while let Either::One(_t) = vrm[0] { } | |
dc9dc135 XL |
188 | | -- ^^^^^^ help: consider borrowing here: `&vrm[0]` |
189 | | | | |
b7449926 | 190 | | data moved here |
dc9dc135 | 191 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 192 | |
1b1a35ee | 193 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 194 | --> $DIR/simple.rs:142:11 |
b7449926 XL |
195 | | |
196 | LL | match vrm[0] { | |
dc9dc135 | 197 | | ^^^^^^ help: consider borrowing here: `&vrm[0]` |
b7449926 XL |
198 | ... |
199 | LL | Either::One(_t) | |
dc9dc135 XL |
200 | | -- |
201 | | | | |
202 | | data moved here | |
203 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 204 | |
1b1a35ee | 205 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 206 | --> $DIR/simple.rs:149:11 |
b7449926 XL |
207 | | |
208 | LL | match vrm[0] { | |
dc9dc135 | 209 | | ^^^^^^ help: consider borrowing here: `&vrm[0]` |
b7449926 XL |
210 | ... |
211 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
212 | | -- |
213 | | | | |
214 | | data moved here | |
215 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 216 | |
1b1a35ee | 217 | error[E0507]: cannot move out of index of `Vec<Either>` |
48663c56 | 218 | --> $DIR/simple.rs:157:11 |
b7449926 XL |
219 | | |
220 | LL | match vrm[0] { | |
dc9dc135 | 221 | | ^^^^^^ help: consider borrowing here: `&vrm[0]` |
b7449926 XL |
222 | ... |
223 | LL | Either::One(_t) => (), | |
dc9dc135 XL |
224 | | -- |
225 | | | | |
226 | | data moved here | |
227 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 228 | |
dc9dc135 | 229 | error[E0507]: cannot move out of `s.0` which is behind a shared reference |
48663c56 | 230 | --> $DIR/simple.rs:168:18 |
b7449926 XL |
231 | | |
232 | LL | let &X(_t) = s; | |
dc9dc135 | 233 | | ------ ^ |
b7449926 XL |
234 | | | | |
235 | | | data moved here | |
dc9dc135 | 236 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 237 | | help: consider removing the `&`: `X(_t)` |
b7449926 | 238 | |
dc9dc135 | 239 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 240 | --> $DIR/simple.rs:172:31 |
b7449926 XL |
241 | | |
242 | LL | if let &Either::One(_t) = r { } | |
dc9dc135 | 243 | | ---------------- ^ |
b7449926 XL |
244 | | | | |
245 | | | data moved here | |
dc9dc135 | 246 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 247 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 248 | |
dc9dc135 | 249 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 250 | --> $DIR/simple.rs:176:34 |
b7449926 XL |
251 | | |
252 | LL | while let &Either::One(_t) = r { } | |
dc9dc135 | 253 | | ---------------- ^ |
b7449926 XL |
254 | | | | |
255 | | | data moved here | |
dc9dc135 | 256 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 257 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 258 | |
dc9dc135 | 259 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 260 | --> $DIR/simple.rs:180:11 |
b7449926 XL |
261 | | |
262 | LL | match r { | |
dc9dc135 | 263 | | ^ |
532ac7d7 | 264 | LL | |
b7449926 | 265 | LL | &Either::One(_t) |
74b04a01 XL |
266 | | -- |
267 | | | | |
268 | | data moved here | |
269 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
270 | | | |
271 | help: consider removing the `&` | |
272 | | | |
94222f64 XL |
273 | LL ~ Either::One(_t) |
274 | LL + | |
275 | LL + | |
276 | LL ~ | &Either::Two(_t) => (), | |
74b04a01 | 277 | | |
b7449926 | 278 | |
dc9dc135 | 279 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 280 | --> $DIR/simple.rs:188:11 |
b7449926 XL |
281 | | |
282 | LL | match r { | |
dc9dc135 | 283 | | ^ |
532ac7d7 | 284 | LL | |
b7449926 XL |
285 | LL | &Either::One(_t) => (), |
286 | | ---------------- | |
287 | | | | | |
288 | | | data moved here | |
dc9dc135 | 289 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 290 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 291 | |
dc9dc135 | 292 | error[E0507]: cannot move out of `r.0` which is behind a shared reference |
48663c56 | 293 | --> $DIR/simple.rs:195:11 |
b7449926 XL |
294 | | |
295 | LL | match r { | |
dc9dc135 | 296 | | ^ |
532ac7d7 | 297 | LL | |
b7449926 XL |
298 | LL | &Either::One(_t) => (), |
299 | | ---------------- | |
300 | | | | | |
301 | | | data moved here | |
dc9dc135 | 302 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 303 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 304 | |
dc9dc135 | 305 | error[E0507]: cannot move out of `sm.0` which is behind a mutable reference |
48663c56 | 306 | --> $DIR/simple.rs:207:22 |
b7449926 XL |
307 | | |
308 | LL | let &mut X(_t) = sm; | |
dc9dc135 | 309 | | ---------- ^^ |
b7449926 XL |
310 | | | | |
311 | | | data moved here | |
dc9dc135 | 312 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 313 | | help: consider removing the `&mut`: `X(_t)` |
b7449926 | 314 | |
dc9dc135 | 315 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 316 | --> $DIR/simple.rs:211:35 |
b7449926 XL |
317 | | |
318 | LL | if let &mut Either::One(_t) = rm { } | |
dc9dc135 | 319 | | -------------------- ^^ |
b7449926 XL |
320 | | | | |
321 | | | data moved here | |
dc9dc135 | 322 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 323 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 324 | |
dc9dc135 | 325 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 326 | --> $DIR/simple.rs:215:38 |
b7449926 XL |
327 | | |
328 | LL | while let &mut Either::One(_t) = rm { } | |
dc9dc135 | 329 | | -------------------- ^^ |
b7449926 XL |
330 | | | | |
331 | | | data moved here | |
dc9dc135 | 332 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 333 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 334 | |
dc9dc135 | 335 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 336 | --> $DIR/simple.rs:219:11 |
b7449926 XL |
337 | | |
338 | LL | match rm { | |
dc9dc135 | 339 | | ^^ |
532ac7d7 | 340 | LL | |
b7449926 XL |
341 | LL | &mut Either::One(_t) => (), |
342 | | -- data moved here | |
343 | ... | |
344 | LL | &mut Either::Two(_t) => (), | |
345 | | -- ...and here | |
346 | | | |
60c5eb7d | 347 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 XL |
348 | help: consider removing the `&mut` |
349 | | | |
350 | LL | Either::One(_t) => (), | |
94222f64 | 351 | | ~~~~~~~~~~~~~~~ |
b7449926 XL |
352 | help: consider removing the `&mut` |
353 | | | |
354 | LL | Either::Two(_t) => (), | |
94222f64 | 355 | | ~~~~~~~~~~~~~~~ |
b7449926 | 356 | |
dc9dc135 | 357 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 358 | --> $DIR/simple.rs:228:11 |
b7449926 XL |
359 | | |
360 | LL | match rm { | |
dc9dc135 | 361 | | ^^ |
532ac7d7 | 362 | LL | |
b7449926 XL |
363 | LL | &mut Either::One(_t) => (), |
364 | | -------------------- | |
365 | | | | | |
366 | | | data moved here | |
dc9dc135 | 367 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 368 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 369 | |
dc9dc135 | 370 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 371 | --> $DIR/simple.rs:235:11 |
b7449926 XL |
372 | | |
373 | LL | match rm { | |
dc9dc135 | 374 | | ^^ |
532ac7d7 | 375 | LL | |
b7449926 XL |
376 | LL | &mut Either::One(_t) => (), |
377 | | -------------------- | |
378 | | | | | |
379 | | | data moved here | |
dc9dc135 | 380 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 381 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 382 | |
dc9dc135 | 383 | error[E0507]: cannot move out of `rm.0` which is behind a mutable reference |
48663c56 | 384 | --> $DIR/simple.rs:242:11 |
b7449926 XL |
385 | | |
386 | LL | match rm { | |
dc9dc135 | 387 | | ^^ |
532ac7d7 | 388 | LL | |
b7449926 XL |
389 | LL | &mut Either::One(_t) => (), |
390 | | -------------------- | |
391 | | | | | |
392 | | | data moved here | |
dc9dc135 | 393 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 394 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 395 | |
dc9dc135 | 396 | error[E0507]: cannot move out of a shared reference |
48663c56 | 397 | --> $DIR/simple.rs:258:21 |
b7449926 XL |
398 | | |
399 | LL | let (&X(_t),) = (&x.clone(),); | |
dc9dc135 | 400 | | -- ^^^^^^^^^^^^^ |
b7449926 XL |
401 | | | |
402 | | data moved here | |
dc9dc135 | 403 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 404 | |
dc9dc135 | 405 | error[E0507]: cannot move out of a shared reference |
48663c56 | 406 | --> $DIR/simple.rs:260:34 |
b7449926 XL |
407 | | |
408 | LL | if let (&Either::One(_t),) = (&e.clone(),) { } | |
dc9dc135 | 409 | | -- ^^^^^^^^^^^^^ |
b7449926 XL |
410 | | | |
411 | | data moved here | |
dc9dc135 | 412 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 413 | |
dc9dc135 | 414 | error[E0507]: cannot move out of a shared reference |
48663c56 | 415 | --> $DIR/simple.rs:262:37 |
b7449926 XL |
416 | | |
417 | LL | while let (&Either::One(_t),) = (&e.clone(),) { } | |
dc9dc135 | 418 | | -- ^^^^^^^^^^^^^ |
b7449926 XL |
419 | | | |
420 | | data moved here | |
dc9dc135 | 421 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 422 | |
dc9dc135 | 423 | error[E0507]: cannot move out of a shared reference |
48663c56 | 424 | --> $DIR/simple.rs:264:11 |
b7449926 XL |
425 | | |
426 | LL | match (&e.clone(),) { | |
dc9dc135 | 427 | | ^^^^^^^^^^^^^ |
532ac7d7 | 428 | LL | |
b7449926 | 429 | LL | (&Either::One(_t),) |
dc9dc135 XL |
430 | | -- |
431 | | | | |
432 | | data moved here | |
433 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
b7449926 | 434 | |
dc9dc135 | 435 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 436 | --> $DIR/simple.rs:272:25 |
b7449926 XL |
437 | | |
438 | LL | let (&mut X(_t),) = (&mut xm.clone(),); | |
dc9dc135 | 439 | | -- ^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
440 | | | |
441 | | data moved here | |
dc9dc135 | 442 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 443 | |
dc9dc135 | 444 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 445 | --> $DIR/simple.rs:274:38 |
b7449926 XL |
446 | | |
447 | LL | if let (&mut Either::One(_t),) = (&mut em.clone(),) { } | |
dc9dc135 | 448 | | -- ^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
449 | | | |
450 | | data moved here | |
dc9dc135 | 451 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 452 | |
dc9dc135 | 453 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 454 | --> $DIR/simple.rs:276:41 |
b7449926 XL |
455 | | |
456 | LL | while let (&mut Either::One(_t),) = (&mut em.clone(),) { } | |
dc9dc135 | 457 | | -- ^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
458 | | | |
459 | | data moved here | |
dc9dc135 | 460 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 461 | |
dc9dc135 | 462 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 463 | --> $DIR/simple.rs:278:11 |
b7449926 XL |
464 | | |
465 | LL | match (&mut em.clone(),) { | |
dc9dc135 | 466 | | ^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 467 | LL | |
b7449926 XL |
468 | LL | (&mut Either::One(_t),) => (), |
469 | | -- data moved here | |
470 | LL | (&mut Either::Two(_t),) => (), | |
471 | | -- ...and here | |
472 | | | |
60c5eb7d | 473 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 474 | |
dc9dc135 | 475 | error[E0507]: cannot move out of a shared reference |
48663c56 | 476 | --> $DIR/simple.rs:288:18 |
b7449926 XL |
477 | | |
478 | LL | let &X(_t) = &x; | |
dc9dc135 | 479 | | ------ ^^ |
b7449926 XL |
480 | | | | |
481 | | | data moved here | |
dc9dc135 | 482 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 483 | | help: consider removing the `&`: `X(_t)` |
b7449926 | 484 | |
dc9dc135 | 485 | error[E0507]: cannot move out of a shared reference |
48663c56 | 486 | --> $DIR/simple.rs:292:31 |
b7449926 XL |
487 | | |
488 | LL | if let &Either::One(_t) = &e { } | |
dc9dc135 | 489 | | ---------------- ^^ |
b7449926 XL |
490 | | | | |
491 | | | data moved here | |
dc9dc135 | 492 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 493 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 494 | |
dc9dc135 | 495 | error[E0507]: cannot move out of a shared reference |
48663c56 | 496 | --> $DIR/simple.rs:296:34 |
b7449926 XL |
497 | | |
498 | LL | while let &Either::One(_t) = &e { } | |
dc9dc135 | 499 | | ---------------- ^^ |
b7449926 XL |
500 | | | | |
501 | | | data moved here | |
dc9dc135 | 502 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 503 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 504 | |
dc9dc135 | 505 | error[E0507]: cannot move out of a shared reference |
48663c56 | 506 | --> $DIR/simple.rs:300:11 |
b7449926 XL |
507 | | |
508 | LL | match &e { | |
dc9dc135 | 509 | | ^^ |
532ac7d7 | 510 | LL | |
b7449926 | 511 | LL | &Either::One(_t) |
74b04a01 XL |
512 | | -- |
513 | | | | |
514 | | data moved here | |
515 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
516 | | | |
517 | help: consider removing the `&` | |
518 | | | |
94222f64 XL |
519 | LL ~ Either::One(_t) |
520 | LL + | |
521 | LL + | |
522 | LL ~ | &Either::Two(_t) => (), | |
74b04a01 | 523 | | |
b7449926 | 524 | |
dc9dc135 | 525 | error[E0507]: cannot move out of a shared reference |
48663c56 | 526 | --> $DIR/simple.rs:308:11 |
b7449926 XL |
527 | | |
528 | LL | match &e { | |
dc9dc135 | 529 | | ^^ |
532ac7d7 | 530 | LL | |
b7449926 XL |
531 | LL | &Either::One(_t) => (), |
532 | | ---------------- | |
533 | | | | | |
534 | | | data moved here | |
dc9dc135 | 535 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 536 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 537 | |
dc9dc135 | 538 | error[E0507]: cannot move out of a shared reference |
48663c56 | 539 | --> $DIR/simple.rs:315:11 |
b7449926 XL |
540 | | |
541 | LL | match &e { | |
dc9dc135 | 542 | | ^^ |
532ac7d7 | 543 | LL | |
b7449926 XL |
544 | LL | &Either::One(_t) => (), |
545 | | ---------------- | |
546 | | | | | |
547 | | | data moved here | |
dc9dc135 | 548 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 549 | | help: consider removing the `&`: `Either::One(_t)` |
b7449926 | 550 | |
dc9dc135 | 551 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 552 | --> $DIR/simple.rs:323:22 |
b7449926 XL |
553 | | |
554 | LL | let &mut X(_t) = &mut xm; | |
dc9dc135 | 555 | | ---------- ^^^^^^^ |
b7449926 XL |
556 | | | | |
557 | | | data moved here | |
dc9dc135 | 558 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 559 | | help: consider removing the `&mut`: `X(_t)` |
b7449926 | 560 | |
dc9dc135 | 561 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 562 | --> $DIR/simple.rs:327:35 |
b7449926 XL |
563 | | |
564 | LL | if let &mut Either::One(_t) = &mut em { } | |
dc9dc135 | 565 | | -------------------- ^^^^^^^ |
b7449926 XL |
566 | | | | |
567 | | | data moved here | |
dc9dc135 | 568 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 569 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 570 | |
dc9dc135 | 571 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 572 | --> $DIR/simple.rs:331:38 |
b7449926 XL |
573 | | |
574 | LL | while let &mut Either::One(_t) = &mut em { } | |
dc9dc135 | 575 | | -------------------- ^^^^^^^ |
b7449926 XL |
576 | | | | |
577 | | | data moved here | |
dc9dc135 | 578 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 579 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 580 | |
dc9dc135 | 581 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 582 | --> $DIR/simple.rs:335:11 |
b7449926 XL |
583 | | |
584 | LL | match &mut em { | |
dc9dc135 | 585 | | ^^^^^^^ |
532ac7d7 | 586 | LL | |
b7449926 | 587 | LL | &mut Either::One(_t) |
74b04a01 XL |
588 | | -- |
589 | | | | |
590 | | data moved here | |
591 | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait | |
592 | | | |
593 | help: consider removing the `&mut` | |
594 | | | |
94222f64 XL |
595 | LL ~ Either::One(_t) |
596 | LL + | |
597 | LL + | |
598 | LL ~ | &mut Either::Two(_t) => (), | |
74b04a01 | 599 | | |
b7449926 | 600 | |
dc9dc135 | 601 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 602 | --> $DIR/simple.rs:343:11 |
b7449926 XL |
603 | | |
604 | LL | match &mut em { | |
dc9dc135 | 605 | | ^^^^^^^ |
532ac7d7 | 606 | LL | |
b7449926 XL |
607 | LL | &mut Either::One(_t) => (), |
608 | | -------------------- | |
609 | | | | | |
610 | | | data moved here | |
dc9dc135 | 611 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 612 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 613 | |
dc9dc135 | 614 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 615 | --> $DIR/simple.rs:350:11 |
b7449926 XL |
616 | | |
617 | LL | match &mut em { | |
dc9dc135 | 618 | | ^^^^^^^ |
532ac7d7 | 619 | LL | |
b7449926 XL |
620 | LL | &mut Either::One(_t) => (), |
621 | | -------------------- | |
622 | | | | | |
623 | | | data moved here | |
dc9dc135 | 624 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 625 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 626 | |
dc9dc135 | 627 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 628 | --> $DIR/simple.rs:357:11 |
b7449926 XL |
629 | | |
630 | LL | match &mut em { | |
dc9dc135 | 631 | | ^^^^^^^ |
532ac7d7 | 632 | LL | |
b7449926 XL |
633 | LL | &mut Either::One(_t) => (), |
634 | | -------------------- | |
635 | | | | | |
636 | | | data moved here | |
dc9dc135 | 637 | | | move occurs because `_t` has type `X`, which does not implement the `Copy` trait |
b7449926 | 638 | | help: consider removing the `&mut`: `Either::One(_t)` |
b7449926 | 639 | |
dc9dc135 | 640 | error[E0507]: cannot move out of a shared reference |
48663c56 | 641 | --> $DIR/simple.rs:202:11 |
b7449926 XL |
642 | | |
643 | LL | fn f1(&X(_t): &X) { } | |
644 | | ^^^--^ | |
645 | | | | | |
646 | | | data moved here | |
dc9dc135 | 647 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 648 | | help: consider removing the `&`: `X(_t)` |
b7449926 | 649 | |
dc9dc135 | 650 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 651 | --> $DIR/simple.rs:249:11 |
b7449926 XL |
652 | | |
653 | LL | fn f2(&mut X(_t): &mut X) { } | |
654 | | ^^^^^^^--^ | |
655 | | | | | |
656 | | | data moved here | |
dc9dc135 | 657 | | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait |
b7449926 | 658 | | help: consider removing the `&mut`: `X(_t)` |
b7449926 | 659 | |
dc9dc135 | 660 | error[E0507]: cannot move out of a shared reference |
48663c56 | 661 | --> $DIR/simple.rs:269:11 |
b7449926 XL |
662 | | |
663 | LL | fn f3((&X(_t),): (&X,)) { } | |
664 | | ^^^^--^^^ | |
dc9dc135 XL |
665 | | | |
666 | | data moved here | |
667 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait | |
b7449926 | 668 | |
dc9dc135 | 669 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 670 | --> $DIR/simple.rs:283:11 |
b7449926 XL |
671 | | |
672 | LL | fn f4((&mut X(_t),): (&mut X,)) { } | |
673 | | ^^^^^^^^--^^^ | |
dc9dc135 XL |
674 | | | |
675 | | data moved here | |
676 | | move occurs because `_t` has type `Y`, which does not implement the `Copy` trait | |
b7449926 XL |
677 | |
678 | error: aborting due to 60 previous errors | |
679 | ||
680 | For more information about this error, try `rustc --explain E0507`. |