1 error[E0382]: borrow of moved value: `a[..]`
2 --> $DIR/borrowck-move-out-from-array-use-match.rs:13:14
7 LL | [.., ref _y] => {}
8 | ^^^^^^ value borrowed here after move
10 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
11 help: borrow this binding in the pattern to avoid moving the value
13 LL | [_, _, ref _x] => {}
16 error[E0382]: borrow of partially moved value: `a[..]`
17 --> $DIR/borrowck-move-out-from-array-use-match.rs:23:14
19 LL | [_, _, (_x, _)] => {}
20 | -- value partially moved here
22 LL | [.., ref _y] => {}
23 | ^^^^^^ value borrowed here after partial move
25 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
26 help: borrow this binding in the pattern to avoid moving the value
28 LL | [_, _, (ref _x, _)] => {}
31 error[E0382]: borrow of moved value: `a[..].0`
32 --> $DIR/borrowck-move-out-from-array-use-match.rs:33:15
34 LL | [_, _, (_x, _)] => {}
37 LL | [.., (ref _y, _)] => {}
38 | ^^^^^^ value borrowed here after move
40 = note: move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
41 help: borrow this binding in the pattern to avoid moving the value
43 LL | [_, _, (ref _x, _)] => {}
46 error[E0382]: use of partially moved value: `a`
47 --> $DIR/borrowck-move-out-from-array-use-match.rs:44:11
50 | -- value partially moved here
53 | ^ value used here after partial move
55 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
56 help: borrow this binding in the pattern to avoid moving the value
58 LL | [ref _x, _, _] => {}
61 error[E0382]: use of partially moved value: `a`
62 --> $DIR/borrowck-move-out-from-array-use-match.rs:55:11
65 | -- value partially moved here
68 | ^ value used here after partial move
70 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
71 help: borrow this binding in the pattern to avoid moving the value
73 LL | [.., ref _x] => {}
76 error[E0382]: use of partially moved value: `a`
77 --> $DIR/borrowck-move-out-from-array-use-match.rs:66:11
79 LL | [(_x, _), _, _] => {}
80 | -- value partially moved here
83 | ^ value used here after partial move
85 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
86 help: borrow this binding in the pattern to avoid moving the value
88 LL | [(ref _x, _), _, _] => {}
91 error[E0382]: use of partially moved value: `a`
92 --> $DIR/borrowck-move-out-from-array-use-match.rs:77:11
94 LL | [.., (_x, _)] => {}
95 | -- value partially moved here
98 | ^ value used here after partial move
100 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
101 help: borrow this binding in the pattern to avoid moving the value
103 LL | [.., (ref _x, _)] => {}
106 error[E0382]: borrow of moved value: `a[..]`
107 --> $DIR/borrowck-move-out-from-array-use-match.rs:89:11
109 LL | [_y @ .., _, _] => {}
110 | -- value moved here
112 LL | [(ref _x, _), _, _] => {}
113 | ^^^^^^ value borrowed here after move
115 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
116 help: borrow this binding in the pattern to avoid moving the value
118 LL | [ref _y @ .., _, _] => {}
121 error[E0382]: borrow of moved value: `a[..]`
122 --> $DIR/borrowck-move-out-from-array-use-match.rs:99:15
124 LL | [_, _, _y @ ..] => {}
125 | -- value moved here
127 LL | [.., (ref _x, _)] => {}
128 | ^^^^^^ value borrowed here after move
130 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
131 help: borrow this binding in the pattern to avoid moving the value
133 LL | [_, _, ref _y @ ..] => {}
136 error[E0382]: use of partially moved value: `a`
137 --> $DIR/borrowck-move-out-from-array-use-match.rs:110:11
139 LL | [x @ .., _] => {}
140 | - value partially moved here
143 | ^ value used here after partial move
145 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
146 help: borrow this binding in the pattern to avoid moving the value
148 LL | [ref x @ .., _] => {}
151 error[E0382]: use of partially moved value: `a`
152 --> $DIR/borrowck-move-out-from-array-use-match.rs:123:5
154 LL | [_, _, _x] => {}
155 | -- value partially moved here
157 LL | a[2] = Default::default();
158 | ^^^^ value used here after partial move
160 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
161 help: borrow this binding in the pattern to avoid moving the value
163 LL | [_, _, ref _x] => {}
166 error[E0382]: use of partially moved value: `a`
167 --> $DIR/borrowck-move-out-from-array-use-match.rs:131:5
169 LL | [_, _, (_x, _)] => {}
170 | -- value partially moved here
172 LL | a[2].1 = Default::default();
173 | ^^^^ value used here after partial move
175 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
176 help: borrow this binding in the pattern to avoid moving the value
178 LL | [_, _, (ref _x, _)] => {}
181 error[E0382]: use of partially moved value: `a`
182 --> $DIR/borrowck-move-out-from-array-use-match.rs:139:5
184 LL | [_, _, _x @ ..] => {}
185 | -- value partially moved here
187 LL | a[0] = Default::default();
188 | ^^^^ value used here after partial move
190 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
191 help: borrow this binding in the pattern to avoid moving the value
193 LL | [_, _, ref _x @ ..] => {}
196 error[E0382]: use of partially moved value: `a`
197 --> $DIR/borrowck-move-out-from-array-use-match.rs:147:5
199 LL | [_, _, _x @ ..] => {}
200 | -- value partially moved here
202 LL | a[0].1 = Default::default();
203 | ^^^^ value used here after partial move
205 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
206 help: borrow this binding in the pattern to avoid moving the value
208 LL | [_, _, ref _x @ ..] => {}
211 error: aborting due to 14 previous errors
213 For more information about this error, try `rustc --explain E0382`.