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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
|
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 @ ..] => {}
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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 @ .., _] => {}
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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 @ .., _, _] => {}
|
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-08-08 12:16:43 -05:00
|
|
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
|
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`.
|