rust/src/test/ui/borrowck/borrowck-move-out-from-array-use-no-overlap-match.stderr

103 lines
3.9 KiB
Plaintext
Raw Normal View History

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
|
LL | [_, _, _x] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
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
|
LL | [_, _, (_x, _)] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
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
|
LL | [_x, _, _] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
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
|
LL | [.., _x] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
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
|
LL | [(_x, _), _, _] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
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
|
LL | [.., (_x, _)] => {}
| -- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
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
|
LL | [_, _y @ ..] => {}
| ------- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
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
|
LL | [_y @ .., _] => {}
| ------- value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
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
|
LL | [x @ .., _, _] => {}
| ------ value partially moved here
LL | }
LL | match a {
| ^ value used here after partial move
|
= note: partial move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
error: aborting due to 9 previous errors
For more information about this error, try `rustc --explain E0382`.