fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0382]: use of moved value: `a` 2 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:17:11 3 | 4LL | [_, _, _x] => {} 5 | -- value moved here 6LL | } 7LL | match a { 8 | ^ value used here after partial move 9 | 10 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 11 12error[E0382]: use of moved value: `a` 13 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:28:11 14 | 15LL | [_, _, (_x, _)] => {} 16 | -- value moved here 17LL | } 18LL | match a { 19 | ^ value used here after partial move 20 | 21 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait 22 23error[E0382]: use of moved value: `a` 24 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:41:11 25 | 26LL | [_x, _, _] => {} 27 | -- value moved here 28LL | } 29LL | match a { 30 | ^ value used here after partial move 31 | 32 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 33 34error[E0382]: use of moved value: `a` 35 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:52:11 36 | 37LL | [.., _x] => {} 38 | -- value moved here 39LL | } 40LL | match a { 41 | ^ value used here after partial move 42 | 43 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 44 45error[E0382]: use of moved value: `a` 46 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:63:11 47 | 48LL | [(_x, _), _, _] => {} 49 | -- value moved here 50LL | } 51LL | match a { 52 | ^ value used here after partial move 53 | 54 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait 55 56error[E0382]: use of moved value: `a` 57 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:74:11 58 | 59LL | [.., (_x, _)] => {} 60 | -- value moved here 61LL | } 62LL | match a { 63 | ^ value used here after partial move 64 | 65 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait 66 67error[E0382]: use of moved value: `a` 68 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:85:11 69 | 70LL | [_, _y @ ..] => {} 71 | ------- value moved here 72LL | } 73LL | match a { 74 | ^ value used here after partial move 75 | 76 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 77 78error[E0382]: use of moved value: `a` 79 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:96:11 80 | 81LL | [_y @ .., _] => {} 82 | ------- value moved here 83LL | } 84LL | match a { 85 | ^ value used here after partial move 86 | 87 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 88 89error[E0382]: use of moved value: `a` 90 --> $DIR/borrowck-move-out-from-array-use-no-overlap-match.rs:109:11 91 | 92LL | [x @ .., _, _] => {} 93 | ------ value moved here 94LL | } 95LL | match a { 96 | ^ value used here after partial move 97 | 98 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 99 100error: aborting due to 9 previous errors 101 102For more information about this error, try `rustc --explain E0382`.