1 error[E0382]: borrow of moved value: `a[..]`
2 --> $DIR/borrowck-move-out-from-array-use-match.rs:15:14
7 LL | [.., ref _y] => {}
8 | ^^^^^^ value borrowed here after move
10 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
12 error[E0382]: borrow of moved value: `a[..]`
13 --> $DIR/borrowck-move-out-from-array-use-match.rs:25:14
15 LL | [_, _, (_x, _)] => {}
18 LL | [.., ref _y] => {}
19 | ^^^^^^ value borrowed here after partial move
21 = note: move occurs because `a[..].0` has type `std::string::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:35:15
26 LL | [_, _, (_x, _)] => {}
29 LL | [.., (ref _y, _)] => {}
30 | ^^^^^^ value borrowed here after move
32 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
34 error[E0382]: use of moved value: `a`
35 --> $DIR/borrowck-move-out-from-array-use-match.rs:46:11
41 | ^ value used here after partial move
43 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
45 error[E0382]: use of moved value: `a`
46 --> $DIR/borrowck-move-out-from-array-use-match.rs:57:11
52 | ^ value used here after partial move
54 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
56 error[E0382]: use of moved value: `a`
57 --> $DIR/borrowck-move-out-from-array-use-match.rs:68:11
59 LL | [(_x, _), _, _] => {}
63 | ^ value used here after partial move
65 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
67 error[E0382]: use of moved value: `a`
68 --> $DIR/borrowck-move-out-from-array-use-match.rs:79:11
70 LL | [.., (_x, _)] => {}
74 | ^ value used here after partial move
76 = note: move occurs because `a[..].0` has type `std::string::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:91: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 `(std::string::String, std::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:101: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 `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
100 error[E0382]: use of moved value: `a`
101 --> $DIR/borrowck-move-out-from-array-use-match.rs:112:11
103 LL | [x @ .., _] => {}
104 | ------ value moved here
107 | ^ value used here after partial move
109 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
111 error[E0382]: use of moved value: `a`
112 --> $DIR/borrowck-move-out-from-array-use-match.rs:125:5
114 LL | [_, _, _x] => {}
115 | -- value moved here
117 LL | a[2] = Default::default();
118 | ^^^^ value used here after partial move
120 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
122 error[E0382]: use of moved value: `a`
123 --> $DIR/borrowck-move-out-from-array-use-match.rs:133:5
125 LL | [_, _, (_x, _)] => {}
126 | -- value moved here
128 LL | a[2].1 = Default::default();
129 | ^^^^ value used here after partial move
131 = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait
133 error[E0382]: use of moved value: `a`
134 --> $DIR/borrowck-move-out-from-array-use-match.rs:141:5
136 LL | [_, _, _x @ ..] => {}
137 | ------- value moved here
139 LL | a[0] = Default::default();
140 | ^^^^ value used here after partial move
142 = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait
144 error[E0382]: use of moved value: `a`
145 --> $DIR/borrowck-move-out-from-array-use-match.rs:149:5
147 LL | [_, _, _x @ ..] => {}
148 | ------- value moved here
150 LL | a[0].1 = Default::default();
151 | ^^^^ value used here after partial move
153 = note: move occurs because `a[..]` has type `(std::string::String, std::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`.