]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/dont-suggest-ref/simple.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / suggestions / dont-suggest-ref / simple.stderr
CommitLineData
dc9dc135 1error[E0507]: cannot move out of `s.0` which is behind a shared reference
48663c56 2 --> $DIR/simple.rs:38:17
b7449926
XL
3 |
4LL | 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 10error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 11 --> $DIR/simple.rs:42:30
b7449926
XL
12 |
13LL | 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 19error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 20 --> $DIR/simple.rs:46:33
b7449926
XL
21 |
22LL | 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 28error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 29 --> $DIR/simple.rs:50:11
b7449926
XL
30 |
31LL | match *r {
dc9dc135 32 | ^^ help: consider borrowing here: `&*r`
b7449926
XL
33...
34LL | 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 40error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 41 --> $DIR/simple.rs:57:11
b7449926
XL
42 |
43LL | match *r {
dc9dc135 44 | ^^ help: consider borrowing here: `&*r`
b7449926
XL
45...
46LL | 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 52error[E0507]: cannot move out of `sm.0` which is behind a mutable reference
48663c56 53 --> $DIR/simple.rs:66:17
b7449926
XL
54 |
55LL | 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 61error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 62 --> $DIR/simple.rs:70:30
b7449926
XL
63 |
64LL | 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 70error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 71 --> $DIR/simple.rs:74:33
b7449926
XL
72 |
73LL | 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 79error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 80 --> $DIR/simple.rs:78:11
b7449926
XL
81 |
82LL | match *rm {
dc9dc135 83 | ^^^ help: consider borrowing here: `&*rm`
b7449926
XL
84...
85LL | 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 91error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 92 --> $DIR/simple.rs:85:11
b7449926
XL
93 |
94LL | match *rm {
dc9dc135 95 | ^^^ help: consider borrowing here: `&*rm`
b7449926
XL
96...
97LL | 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 103error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 104 --> $DIR/simple.rs:93:11
b7449926
XL
105 |
106LL | match *rm {
dc9dc135 107 | ^^^ help: consider borrowing here: `&*rm`
b7449926
XL
108...
109LL | 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 115error[E0507]: cannot move out of index of `Vec<X>`
48663c56 116 --> $DIR/simple.rs:102:17
b7449926
XL
117 |
118LL | 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 124error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 125 --> $DIR/simple.rs:106:30
b7449926
XL
126 |
127LL | 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 133error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 134 --> $DIR/simple.rs:110:33
b7449926
XL
135 |
136LL | 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 142error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 143 --> $DIR/simple.rs:114:11
b7449926
XL
144 |
145LL | match vr[0] {
dc9dc135 146 | ^^^^^ help: consider borrowing here: `&vr[0]`
b7449926
XL
147...
148LL | 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 154error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 155 --> $DIR/simple.rs:121:11
b7449926
XL
156 |
157LL | match vr[0] {
dc9dc135 158 | ^^^^^ help: consider borrowing here: `&vr[0]`
b7449926
XL
159...
160LL | 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 166error[E0507]: cannot move out of index of `Vec<X>`
48663c56 167 --> $DIR/simple.rs:130:17
b7449926
XL
168 |
169LL | 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 175error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 176 --> $DIR/simple.rs:134:30
b7449926
XL
177 |
178LL | 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 184error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 185 --> $DIR/simple.rs:138:33
b7449926
XL
186 |
187LL | 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 193error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 194 --> $DIR/simple.rs:142:11
b7449926
XL
195 |
196LL | match vrm[0] {
dc9dc135 197 | ^^^^^^ help: consider borrowing here: `&vrm[0]`
b7449926
XL
198...
199LL | 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 205error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 206 --> $DIR/simple.rs:149:11
b7449926
XL
207 |
208LL | match vrm[0] {
dc9dc135 209 | ^^^^^^ help: consider borrowing here: `&vrm[0]`
b7449926
XL
210...
211LL | 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 217error[E0507]: cannot move out of index of `Vec<Either>`
48663c56 218 --> $DIR/simple.rs:157:11
b7449926
XL
219 |
220LL | match vrm[0] {
dc9dc135 221 | ^^^^^^ help: consider borrowing here: `&vrm[0]`
b7449926
XL
222...
223LL | 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 229error[E0507]: cannot move out of `s.0` which is behind a shared reference
48663c56 230 --> $DIR/simple.rs:168:18
b7449926
XL
231 |
232LL | 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 239error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 240 --> $DIR/simple.rs:172:31
b7449926
XL
241 |
242LL | 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 249error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 250 --> $DIR/simple.rs:176:34
b7449926
XL
251 |
252LL | 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 259error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 260 --> $DIR/simple.rs:180:11
b7449926
XL
261 |
262LL | match r {
dc9dc135 263 | ^
532ac7d7 264LL |
b7449926 265LL | &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 |
271help: consider removing the `&`
272 |
94222f64
XL
273LL ~ Either::One(_t)
274LL +
275LL +
276LL ~ | &Either::Two(_t) => (),
74b04a01 277 |
b7449926 278
dc9dc135 279error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 280 --> $DIR/simple.rs:188:11
b7449926
XL
281 |
282LL | match r {
dc9dc135 283 | ^
532ac7d7 284LL |
b7449926
XL
285LL | &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 292error[E0507]: cannot move out of `r.0` which is behind a shared reference
48663c56 293 --> $DIR/simple.rs:195:11
b7449926
XL
294 |
295LL | match r {
dc9dc135 296 | ^
532ac7d7 297LL |
b7449926
XL
298LL | &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 305error[E0507]: cannot move out of `sm.0` which is behind a mutable reference
48663c56 306 --> $DIR/simple.rs:207:22
b7449926
XL
307 |
308LL | 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 315error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 316 --> $DIR/simple.rs:211:35
b7449926
XL
317 |
318LL | 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 325error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 326 --> $DIR/simple.rs:215:38
b7449926
XL
327 |
328LL | 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 335error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 336 --> $DIR/simple.rs:219:11
b7449926
XL
337 |
338LL | match rm {
dc9dc135 339 | ^^
532ac7d7 340LL |
b7449926
XL
341LL | &mut Either::One(_t) => (),
342 | -- data moved here
343...
344LL | &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
348help: consider removing the `&mut`
349 |
350LL | Either::One(_t) => (),
94222f64 351 | ~~~~~~~~~~~~~~~
b7449926
XL
352help: consider removing the `&mut`
353 |
354LL | Either::Two(_t) => (),
94222f64 355 | ~~~~~~~~~~~~~~~
b7449926 356
dc9dc135 357error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 358 --> $DIR/simple.rs:228:11
b7449926
XL
359 |
360LL | match rm {
dc9dc135 361 | ^^
532ac7d7 362LL |
b7449926
XL
363LL | &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 370error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 371 --> $DIR/simple.rs:235:11
b7449926
XL
372 |
373LL | match rm {
dc9dc135 374 | ^^
532ac7d7 375LL |
b7449926
XL
376LL | &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 383error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
48663c56 384 --> $DIR/simple.rs:242:11
b7449926
XL
385 |
386LL | match rm {
dc9dc135 387 | ^^
532ac7d7 388LL |
b7449926
XL
389LL | &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 396error[E0507]: cannot move out of a shared reference
48663c56 397 --> $DIR/simple.rs:258:21
b7449926
XL
398 |
399LL | 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 405error[E0507]: cannot move out of a shared reference
48663c56 406 --> $DIR/simple.rs:260:34
b7449926
XL
407 |
408LL | 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 414error[E0507]: cannot move out of a shared reference
48663c56 415 --> $DIR/simple.rs:262:37
b7449926
XL
416 |
417LL | 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 423error[E0507]: cannot move out of a shared reference
48663c56 424 --> $DIR/simple.rs:264:11
b7449926
XL
425 |
426LL | match (&e.clone(),) {
dc9dc135 427 | ^^^^^^^^^^^^^
532ac7d7 428LL |
b7449926 429LL | (&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 435error[E0507]: cannot move out of a mutable reference
48663c56 436 --> $DIR/simple.rs:272:25
b7449926
XL
437 |
438LL | 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 444error[E0507]: cannot move out of a mutable reference
48663c56 445 --> $DIR/simple.rs:274:38
b7449926
XL
446 |
447LL | 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 453error[E0507]: cannot move out of a mutable reference
48663c56 454 --> $DIR/simple.rs:276:41
b7449926
XL
455 |
456LL | 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 462error[E0507]: cannot move out of a mutable reference
48663c56 463 --> $DIR/simple.rs:278:11
b7449926
XL
464 |
465LL | match (&mut em.clone(),) {
dc9dc135 466 | ^^^^^^^^^^^^^^^^^^
532ac7d7 467LL |
b7449926
XL
468LL | (&mut Either::One(_t),) => (),
469 | -- data moved here
470LL | (&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 475error[E0507]: cannot move out of a shared reference
48663c56 476 --> $DIR/simple.rs:288:18
b7449926
XL
477 |
478LL | 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 485error[E0507]: cannot move out of a shared reference
48663c56 486 --> $DIR/simple.rs:292:31
b7449926
XL
487 |
488LL | 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 495error[E0507]: cannot move out of a shared reference
48663c56 496 --> $DIR/simple.rs:296:34
b7449926
XL
497 |
498LL | 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 505error[E0507]: cannot move out of a shared reference
48663c56 506 --> $DIR/simple.rs:300:11
b7449926
XL
507 |
508LL | match &e {
dc9dc135 509 | ^^
532ac7d7 510LL |
b7449926 511LL | &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 |
517help: consider removing the `&`
518 |
94222f64
XL
519LL ~ Either::One(_t)
520LL +
521LL +
522LL ~ | &Either::Two(_t) => (),
74b04a01 523 |
b7449926 524
dc9dc135 525error[E0507]: cannot move out of a shared reference
48663c56 526 --> $DIR/simple.rs:308:11
b7449926
XL
527 |
528LL | match &e {
dc9dc135 529 | ^^
532ac7d7 530LL |
b7449926
XL
531LL | &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 538error[E0507]: cannot move out of a shared reference
48663c56 539 --> $DIR/simple.rs:315:11
b7449926
XL
540 |
541LL | match &e {
dc9dc135 542 | ^^
532ac7d7 543LL |
b7449926
XL
544LL | &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 551error[E0507]: cannot move out of a mutable reference
48663c56 552 --> $DIR/simple.rs:323:22
b7449926
XL
553 |
554LL | 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 561error[E0507]: cannot move out of a mutable reference
48663c56 562 --> $DIR/simple.rs:327:35
b7449926
XL
563 |
564LL | 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 571error[E0507]: cannot move out of a mutable reference
48663c56 572 --> $DIR/simple.rs:331:38
b7449926
XL
573 |
574LL | 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 581error[E0507]: cannot move out of a mutable reference
48663c56 582 --> $DIR/simple.rs:335:11
b7449926
XL
583 |
584LL | match &mut em {
dc9dc135 585 | ^^^^^^^
532ac7d7 586LL |
b7449926 587LL | &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 |
593help: consider removing the `&mut`
594 |
94222f64
XL
595LL ~ Either::One(_t)
596LL +
597LL +
598LL ~ | &mut Either::Two(_t) => (),
74b04a01 599 |
b7449926 600
dc9dc135 601error[E0507]: cannot move out of a mutable reference
48663c56 602 --> $DIR/simple.rs:343:11
b7449926
XL
603 |
604LL | match &mut em {
dc9dc135 605 | ^^^^^^^
532ac7d7 606LL |
b7449926
XL
607LL | &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 614error[E0507]: cannot move out of a mutable reference
48663c56 615 --> $DIR/simple.rs:350:11
b7449926
XL
616 |
617LL | match &mut em {
dc9dc135 618 | ^^^^^^^
532ac7d7 619LL |
b7449926
XL
620LL | &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 627error[E0507]: cannot move out of a mutable reference
48663c56 628 --> $DIR/simple.rs:357:11
b7449926
XL
629 |
630LL | match &mut em {
dc9dc135 631 | ^^^^^^^
532ac7d7 632LL |
b7449926
XL
633LL | &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 640error[E0507]: cannot move out of a shared reference
48663c56 641 --> $DIR/simple.rs:202:11
b7449926
XL
642 |
643LL | 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 650error[E0507]: cannot move out of a mutable reference
48663c56 651 --> $DIR/simple.rs:249:11
b7449926
XL
652 |
653LL | 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 660error[E0507]: cannot move out of a shared reference
48663c56 661 --> $DIR/simple.rs:269:11
b7449926
XL
662 |
663LL | 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 669error[E0507]: cannot move out of a mutable reference
48663c56 670 --> $DIR/simple.rs:283:11
b7449926
XL
671 |
672LL | 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
678error: aborting due to 60 previous errors
679
680For more information about this error, try `rustc --explain E0507`.