2017-04-14 23:04:37 -05:00
|
|
|
error[E0507]: cannot move out of indexed content
|
2017-04-27 15:26:12 -05:00
|
|
|
--> $DIR/issue-40402-2.rs:15:18
|
2017-04-14 23:04:37 -05:00
|
|
|
|
|
2017-04-27 15:26:12 -05:00
|
|
|
15 | let (a, b) = x[0];
|
2017-04-14 23:04:37 -05:00
|
|
|
| - - ^^^^ cannot move out of indexed content
|
|
|
|
| | |
|
|
|
|
| | ...and here (use `ref b` or `ref mut b`)
|
|
|
|
| hint: to prevent move, use `ref a` or `ref mut a`
|
|
|
|
|
2017-05-22 06:46:05 -05:00
|
|
|
error: aborting due to previous error(s)
|
2017-04-14 23:04:37 -05:00
|
|
|
|