fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0382]: borrow of moved value: `a[..]` 2 --> $DIR/borrowck-move-out-from-array-use-match.rs:13:14 3 | 4LL | [_, _, _x] => {} 5 | -- value moved here 6... 7LL | [.., ref _y] => {} 8 | ^^^^^^ value borrowed here after 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]: borrow of moved value: `a[..]` 13 --> $DIR/borrowck-move-out-from-array-use-match.rs:23:14 14 | 15LL | [_, _, (_x, _)] => {} 16 | -- value moved here 17... 18LL | [.., ref _y] => {} 19 | ^^^^^^ value borrowed 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]: borrow of moved value: `a[..].0` 24 --> $DIR/borrowck-move-out-from-array-use-match.rs:33:15 25 | 26LL | [_, _, (_x, _)] => {} 27 | -- value moved here 28... 29LL | [.., (ref _y, _)] => {} 30 | ^^^^^^ value borrowed here after move 31 | 32 = note: move occurs because `a[..].0` has type `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-match.rs:44: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-match.rs:55: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[..]` has type `(std::string::String, 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-match.rs:66: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-match.rs:77:11 69 | 70LL | [.., (_x, _)] => {} 71 | -- value moved here 72LL | } 73LL | match a { 74 | ^ value used here after partial move 75 | 76 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait 77 78error[E0382]: borrow of moved value: `a[..]` 79 --> $DIR/borrowck-move-out-from-array-use-match.rs:89:11 80 | 81LL | [_y @ .., _, _] => {} 82 | ------- value moved here 83... 84LL | [(ref _x, _), _, _] => {} 85 | ^^^^^^ value borrowed here after 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]: borrow of moved value: `a[..]` 90 --> $DIR/borrowck-move-out-from-array-use-match.rs:99:15 91 | 92LL | [_, _, _y @ ..] => {} 93 | ------- value moved here 94... 95LL | [.., (ref _x, _)] => {} 96 | ^^^^^^ value borrowed here after 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[E0382]: use of moved value: `a` 101 --> $DIR/borrowck-move-out-from-array-use-match.rs:110:11 102 | 103LL | [x @ .., _] => {} 104 | ------ value moved here 105LL | } 106LL | match a { 107 | ^ value used here after partial move 108 | 109 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 110 111error[E0382]: use of moved value: `a` 112 --> $DIR/borrowck-move-out-from-array-use-match.rs:123:5 113 | 114LL | [_, _, _x] => {} 115 | -- value moved here 116LL | } 117LL | a[2] = Default::default(); 118 | ^^^^ value used here after partial move 119 | 120 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 121 122error[E0382]: use of moved value: `a` 123 --> $DIR/borrowck-move-out-from-array-use-match.rs:131:5 124 | 125LL | [_, _, (_x, _)] => {} 126 | -- value moved here 127LL | } 128LL | a[2].1 = Default::default(); 129 | ^^^^ value used here after partial move 130 | 131 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait 132 133error[E0382]: use of moved value: `a` 134 --> $DIR/borrowck-move-out-from-array-use-match.rs:139:5 135 | 136LL | [_, _, _x @ ..] => {} 137 | ------- value moved here 138LL | } 139LL | a[0] = Default::default(); 140 | ^^^^ value used here after partial move 141 | 142 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 143 144error[E0382]: use of moved value: `a` 145 --> $DIR/borrowck-move-out-from-array-use-match.rs:147:5 146 | 147LL | [_, _, _x @ ..] => {} 148 | ------- value moved here 149LL | } 150LL | a[0].1 = Default::default(); 151 | ^^^^ value used here after partial move 152 | 153 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait 154 155error: aborting due to 14 previous errors 156 157For more information about this error, try `rustc --explain E0382`.