2020-01-07 23:42:53 +00:00
|
|
|
error[E0382]: use of moved value: `a[..]`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:13:14
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_, _, _x] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., _y] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, ref _x] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a[..]`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:23:14
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_, _, (_x, _)] => {}
|
2020-08-08 17:16:43 +00:00
|
|
|
| -- value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
...
|
|
|
|
LL | [.., _y] => {}
|
|
|
|
| ^^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, (ref _x, _)] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:33:15
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_, _, (_x, _)] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., (_y, _)] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, (ref _x, _)] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:44:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_x, _, _] => {}
|
2020-08-08 17:16:43 +00:00
|
|
|
| -- value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref _x, _, _] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:55:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [.., _x] => {}
|
2020-08-08 17:16:43 +00:00
|
|
|
| -- value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [.., ref _x] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:66:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [(_x, _), _, _] => {}
|
2020-08-08 17:16:43 +00:00
|
|
|
| -- value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [(ref _x, _), _, _] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:77:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [.., (_x, _)] => {}
|
2020-08-08 17:16:43 +00:00
|
|
|
| -- value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [.., (ref _x, _)] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:89:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_y @ .., _, _] => {}
|
2022-09-03 22:55:53 +00:00
|
|
|
| -- value moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
...
|
|
|
|
LL | [(_x, _), _, _] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref _y @ .., _, _] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:99:15
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [_, _, _y @ ..] => {}
|
2022-09-03 22:55:53 +00:00
|
|
|
| -- value moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
...
|
|
|
|
LL | [.., (_x, _)] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [_, _, ref _y @ ..] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
2020-08-08 17:16:43 +00:00
|
|
|
error[E0382]: use of partially moved value: `a`
|
2019-12-30 00:23:42 +00:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:110:11
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
|
LL | [x @ .., _] => {}
|
2022-09-03 22:55:53 +00:00
|
|
|
| - value partially moved here
|
2020-01-07 23:42:53 +00:00
|
|
|
LL | }
|
|
|
|
LL | match a {
|
|
|
|
| ^ value used here after partial move
|
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
|
|
|
|
|
|
|
|
LL | [ref x @ .., _] => {}
|
|
|
|
| +++
|
2020-01-07 23:42:53 +00:00
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|