fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 `(String, String)`, which does not implement the `Copy` trait 11help: borrow this binding in the pattern to avoid moving the value 12 | 13LL | [_, _, ref _x] => {} 14 | +++ 15 16error[E0382]: borrow of partially moved value: `a[..]` 17 --> $DIR/borrowck-move-out-from-array-use-match.rs:23:14 18 | 19LL | [_, _, (_x, _)] => {} 20 | -- value partially moved here 21... 22LL | [.., ref _y] => {} 23 | ^^^^^^ value borrowed here after partial move 24 | 25 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait 26help: borrow this binding in the pattern to avoid moving the value 27 | 28LL | [_, _, (ref _x, _)] => {} 29 | +++ 30 31error[E0382]: borrow of moved value: `a[..].0` 32 --> $DIR/borrowck-move-out-from-array-use-match.rs:33:15 33 | 34LL | [_, _, (_x, _)] => {} 35 | -- value moved here 36... 37LL | [.., (ref _y, _)] => {} 38 | ^^^^^^ value borrowed here after move 39 | 40 = note: move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait 41help: borrow this binding in the pattern to avoid moving the value 42 | 43LL | [_, _, (ref _x, _)] => {} 44 | +++ 45 46error[E0382]: use of partially moved value: `a` 47 --> $DIR/borrowck-move-out-from-array-use-match.rs:44:11 48 | 49LL | [_x, _, _] => {} 50 | -- value partially moved here 51LL | } 52LL | match a { 53 | ^ value used here after partial move 54 | 55 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 56help: borrow this binding in the pattern to avoid moving the value 57 | 58LL | [ref _x, _, _] => {} 59 | +++ 60 61error[E0382]: use of partially moved value: `a` 62 --> $DIR/borrowck-move-out-from-array-use-match.rs:55:11 63 | 64LL | [.., _x] => {} 65 | -- value partially moved here 66LL | } 67LL | match a { 68 | ^ value used here after partial move 69 | 70 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 71help: borrow this binding in the pattern to avoid moving the value 72 | 73LL | [.., ref _x] => {} 74 | +++ 75 76error[E0382]: use of partially moved value: `a` 77 --> $DIR/borrowck-move-out-from-array-use-match.rs:66:11 78 | 79LL | [(_x, _), _, _] => {} 80 | -- value partially moved here 81LL | } 82LL | match a { 83 | ^ value used here after partial move 84 | 85 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait 86help: borrow this binding in the pattern to avoid moving the value 87 | 88LL | [(ref _x, _), _, _] => {} 89 | +++ 90 91error[E0382]: use of partially moved value: `a` 92 --> $DIR/borrowck-move-out-from-array-use-match.rs:77:11 93 | 94LL | [.., (_x, _)] => {} 95 | -- value partially moved here 96LL | } 97LL | match a { 98 | ^ value used here after partial move 99 | 100 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait 101help: borrow this binding in the pattern to avoid moving the value 102 | 103LL | [.., (ref _x, _)] => {} 104 | +++ 105 106error[E0382]: borrow of moved value: `a[..]` 107 --> $DIR/borrowck-move-out-from-array-use-match.rs:89:11 108 | 109LL | [_y @ .., _, _] => {} 110 | -- value moved here 111... 112LL | [(ref _x, _), _, _] => {} 113 | ^^^^^^ value borrowed here after move 114 | 115 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 116help: borrow this binding in the pattern to avoid moving the value 117 | 118LL | [ref _y @ .., _, _] => {} 119 | +++ 120 121error[E0382]: borrow of moved value: `a[..]` 122 --> $DIR/borrowck-move-out-from-array-use-match.rs:99:15 123 | 124LL | [_, _, _y @ ..] => {} 125 | -- value moved here 126... 127LL | [.., (ref _x, _)] => {} 128 | ^^^^^^ value borrowed here after move 129 | 130 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 131help: borrow this binding in the pattern to avoid moving the value 132 | 133LL | [_, _, ref _y @ ..] => {} 134 | +++ 135 136error[E0382]: use of partially moved value: `a` 137 --> $DIR/borrowck-move-out-from-array-use-match.rs:110:11 138 | 139LL | [x @ .., _] => {} 140 | - value partially moved here 141LL | } 142LL | match a { 143 | ^ value used here after partial move 144 | 145 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 146help: borrow this binding in the pattern to avoid moving the value 147 | 148LL | [ref x @ .., _] => {} 149 | +++ 150 151error[E0382]: use of partially moved value: `a` 152 --> $DIR/borrowck-move-out-from-array-use-match.rs:123:5 153 | 154LL | [_, _, _x] => {} 155 | -- value partially moved here 156LL | } 157LL | a[2] = Default::default(); 158 | ^^^^ value used here after partial move 159 | 160 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 161help: borrow this binding in the pattern to avoid moving the value 162 | 163LL | [_, _, ref _x] => {} 164 | +++ 165 166error[E0382]: use of partially moved value: `a` 167 --> $DIR/borrowck-move-out-from-array-use-match.rs:131:5 168 | 169LL | [_, _, (_x, _)] => {} 170 | -- value partially moved here 171LL | } 172LL | a[2].1 = Default::default(); 173 | ^^^^ value used here after partial move 174 | 175 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait 176help: borrow this binding in the pattern to avoid moving the value 177 | 178LL | [_, _, (ref _x, _)] => {} 179 | +++ 180 181error[E0382]: use of partially moved value: `a` 182 --> $DIR/borrowck-move-out-from-array-use-match.rs:139:5 183 | 184LL | [_, _, _x @ ..] => {} 185 | -- value partially moved here 186LL | } 187LL | a[0] = Default::default(); 188 | ^^^^ value used here after partial move 189 | 190 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 191help: borrow this binding in the pattern to avoid moving the value 192 | 193LL | [_, _, ref _x @ ..] => {} 194 | +++ 195 196error[E0382]: use of partially moved value: `a` 197 --> $DIR/borrowck-move-out-from-array-use-match.rs:147:5 198 | 199LL | [_, _, _x @ ..] => {} 200 | -- value partially moved here 201LL | } 202LL | a[0].1 = Default::default(); 203 | ^^^^ value used here after partial move 204 | 205 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait 206help: borrow this binding in the pattern to avoid moving the value 207 | 208LL | [_, _, ref _x @ ..] => {} 209 | +++ 210 211error: aborting due to 14 previous errors 212 213For more information about this error, try `rustc --explain E0382`.