2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:17:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, _x] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, ref _x] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:28:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, (_x, _)] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, (ref _x, _)] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:41:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_x, _, _] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref _x, _, _] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:52:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [.., _x] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [.., ref _x] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:63:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [(_x, _), _, _] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [(ref _x, _), _, _] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:74:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [.., (_x, _)] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [.., (ref _x, _)] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:85:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _y @ ..] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, ref _y @ ..] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:96:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_y @ .., _] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| -- value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref _y @ .., _] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
2020-08-08 12:16:43 -05:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:109:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [x @ .., _, _] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| - value partially moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref x @ .., _, _] => {}
|
|
|
|
| +++
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|