2020-01-07 17:42:53 -06:00
|
|
|
error[E0382]: use of moved value: `a[..]`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:13:14
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, _x] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., _y] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: 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-match.rs:23:14
|
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 | [.., _y] => {}
|
|
|
|
| ^^ 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
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:33:15
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, (_x, _)] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., (_y, _)] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: 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`
|
2022-10-15 04:00:32 -05:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:45:10
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_x, _, _] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2022-10-15 04:00:32 -05:00
|
|
|
...
|
|
|
|
LL | [_y @ .., _, _] => {}
|
|
|
|
| ^^ value used here after partial move
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
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`
|
2022-10-15 04:00:32 -05:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:56:16
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [.., _x] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2022-10-15 04:00:32 -05:00
|
|
|
...
|
|
|
|
LL | [_, _, _y @ ..] => {}
|
|
|
|
| ^^ value used here after partial move
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
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`
|
2022-10-15 04:00:32 -05:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:67:10
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [(_x, _), _, _] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2022-10-15 04:00:32 -05:00
|
|
|
...
|
|
|
|
LL | [_y @ .., _, _] => {}
|
|
|
|
| ^^ value used here after partial move
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
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`
|
2022-10-15 04:00:32 -05:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:78:16
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [.., (_x, _)] => {}
|
2020-08-08 12:16:43 -05:00
|
|
|
| -- value partially moved here
|
2022-10-15 04:00:32 -05:00
|
|
|
...
|
|
|
|
LL | [_, _, _y @ ..] => {}
|
|
|
|
| ^^ value used here after partial move
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
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
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:89:11
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_y @ .., _, _] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| -- value moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
...
|
|
|
|
LL | [(_x, _), _, _] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: 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
|
|
|
|
|
|
|
error[E0382]: use of moved value: `a[..].0`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:99:15
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, _y @ ..] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| -- value moved here
|
2020-01-07 17:42:53 -06:00
|
|
|
...
|
|
|
|
LL | [.., (_x, _)] => {}
|
|
|
|
| ^^ value used here after move
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: 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`
|
2022-10-15 04:00:32 -05:00
|
|
|
--> $DIR/borrowck-move-out-from-array-match.rs:111:13
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [x @ .., _] => {}
|
2022-09-03 17:55:53 -05:00
|
|
|
| - value partially moved here
|
2022-10-15 04:00:32 -05:00
|
|
|
...
|
|
|
|
LL | [_, _y @ ..] => {}
|
|
|
|
| ^^ value used here after partial move
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
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 10 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|