2020-01-07 17:42:53 -06:00
|
|
|
error[E0382]: borrow of moved value: `a[..]`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-match.rs:13:14
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, _x] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., ref _y] => {}
|
|
|
|
| ^^^^^^ value borrowed 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]: borrow of partially moved value: `a[..]`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [.., ref _y] => {}
|
|
|
|
| ^^^^^^ value borrowed 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]: borrow of moved value: `a[..].0`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-match.rs:33:15
|
2020-01-07 17:42:53 -06:00
|
|
|
|
|
|
|
|
LL | [_, _, (_x, _)] => {}
|
|
|
|
| -- value moved here
|
|
|
|
...
|
|
|
|
LL | [.., (ref _y, _)] => {}
|
|
|
|
| ^^^^^^ value borrowed 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
|
|
|
|
2022-10-15 04:00:32 -05:00
|
|
|
error[E0382]: borrow of partially moved value: `a`
|
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [ref _y @ .., _, _] => {}
|
|
|
|
| ^^^^^^ value borrowed 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
|
|
|
|
2022-10-15 04:00:32 -05:00
|
|
|
error[E0382]: borrow of partially moved value: `a`
|
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [_, _, ref _y @ ..] => {}
|
|
|
|
| ^^^^^^ value borrowed 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
|
|
|
|
2022-10-15 04:00:32 -05:00
|
|
|
error[E0382]: borrow of partially moved value: `a`
|
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [ref _y @ .., _, _] => {}
|
|
|
|
| ^^^^^^ value borrowed 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
|
|
|
|
2022-10-15 04:00:32 -05:00
|
|
|
error[E0382]: borrow of partially moved value: `a`
|
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [_, _, ref _y @ ..] => {}
|
|
|
|
| ^^^^^^ value borrowed 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]: borrow of moved value: `a[..]`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [(ref _x, _), _, _] => {}
|
|
|
|
| ^^^^^^ value borrowed 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]: borrow of moved value: `a[..]`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [.., (ref _x, _)] => {}
|
|
|
|
| ^^^^^^ value borrowed 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
|
|
|
|
2022-10-15 04:00:32 -05:00
|
|
|
error[E0382]: borrow of partially moved value: `a`
|
|
|
|
--> $DIR/borrowck-move-out-from-array-use-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 | [_, ref _y @ ..] => {}
|
|
|
|
| ^^^^^^ value borrowed 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`
|
2019-12-29 18:23:42 -06:00
|
|
|
--> $DIR/borrowck-move-out-from-array-use-match.rs:123:5
|
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 | a[2] = Default::default();
|
|
|
|
| ^^^^ 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-match.rs:131:5
|
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 | a[2].1 = Default::default();
|
|
|
|
| ^^^^ 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-match.rs:139:5
|
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 | a[0] = Default::default();
|
|
|
|
| ^^^^ 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-match.rs:147:5
|
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 | a[0].1 = Default::default();
|
|
|
|
| ^^^^ 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 14 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|