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
12 error[E0382]: borrow of partially moved value: `a[..]`
13 --> $DIR/borrowck-move-out-from-array-use-match.rs:23:14
15 LL | [_, _, (_x, _)] => {}
16 | -- value partially moved here
18 LL | [.., ref _y] => {}
19 | ^^^^^^ value borrowed here after partial move
21 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
23 error[E0382]: borrow of moved value: `a[..].0`
24 --> $DIR/borrowck-move-out-from-array-use-match.rs:33:15
26 LL | [_, _, (_x, _)] => {}
29 LL | [.., (ref _y, _)] => {}
30 | ^^^^^^ value borrowed here after move
32 = note: move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
34 error[E0382]: use of partially moved value: `a`
35 --> $DIR/borrowck-move-out-from-array-use-match.rs:44:11
38 | -- value partially moved here
41 | ^ value used here after partial move
43 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
45 error[E0382]: use of partially moved value: `a`
46 --> $DIR/borrowck-move-out-from-array-use-match.rs:55:11
49 | -- value partially moved here
52 | ^ value used here after partial move
54 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
56 error[E0382]: use of partially moved value: `a`
57 --> $DIR/borrowck-move-out-from-array-use-match.rs:66:11
59 LL | [(_x, _), _, _] => {}
60 | -- value partially moved here
63 | ^ value used here after partial move
65 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
67 error[E0382]: use of partially moved value: `a`
68 --> $DIR/borrowck-move-out-from-array-use-match.rs:77:11
70 LL | [.., (_x, _)] => {}
71 | -- value partially moved here
74 | ^ value used here after partial move
76 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
78 error[E0382]: borrow of moved value: `a[..]`
79 --> $DIR/borrowck-move-out-from-array-use-match.rs:89:11
81 LL | [_y @ .., _, _] => {}
82 | ------- value moved here
84 LL | [(ref _x, _), _, _] => {}
85 | ^^^^^^ value borrowed here after move
87 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
89 error[E0382]: borrow of moved value: `a[..]`
90 --> $DIR/borrowck-move-out-from-array-use-match.rs:99:15
92 LL | [_, _, _y @ ..] => {}
93 | ------- value moved here
95 LL | [.., (ref _x, _)] => {}
96 | ^^^^^^ value borrowed here after move
98 = note: move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
100 error[E0382]: use of partially moved value: `a`
101 --> $DIR/borrowck-move-out-from-array-use-match.rs:110:11
103 LL | [x @ .., _] => {}
104 | ------ value partially moved here
107 | ^ value used here after partial move
109 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
111 error[E0382]: use of partially moved value: `a`
112 --> $DIR/borrowck-move-out-from-array-use-match.rs:123:5
114 LL | [_, _, _x] => {}
115 | -- value partially moved here
117 LL | a[2] = Default::default();
118 | ^^^^ value used here after partial move
120 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
122 error[E0382]: use of partially moved value: `a`
123 --> $DIR/borrowck-move-out-from-array-use-match.rs:131:5
125 LL | [_, _, (_x, _)] => {}
126 | -- value partially moved here
128 LL | a[2].1 = Default::default();
129 | ^^^^ value used here after partial move
131 = note: partial move occurs because `a[..].0` has type `String`, which does not implement the `Copy` trait
133 error[E0382]: use of partially moved value: `a`
134 --> $DIR/borrowck-move-out-from-array-use-match.rs:139:5
136 LL | [_, _, _x @ ..] => {}
137 | ------- value partially moved here
139 LL | a[0] = Default::default();
140 | ^^^^ value used here after partial move
142 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
144 error[E0382]: use of partially moved value: `a`
145 --> $DIR/borrowck-move-out-from-array-use-match.rs:147:5
147 LL | [_, _, _x @ ..] => {}
148 | ------- value partially moved here
150 LL | a[0].1 = Default::default();
151 | ^^^^ value used here after partial move
153 = note: partial move occurs because `a[..]` has type `(String, String)`, which does not implement the `Copy` trait
155 error: aborting due to 14 previous errors
157 For more information about this error, try `rustc --explain E0382`.