]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0507]: cannot move out of a shared reference |
48663c56 | 2 | --> $DIR/duplicate-suggestions.rs:39:27 |
b7449926 XL |
3 | | |
4 | LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone()); | |
dc9dc135 | 5 | | --------------- ^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
6 | | | | | |
7 | | | | ...and here | |
8 | | | data moved here | |
9 | | help: consider removing the `&`: `(X(_t), X(_u))` | |
10 | | | |
60c5eb7d | 11 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 12 | |
dc9dc135 | 13 | error[E0507]: cannot move out of a shared reference |
48663c56 | 14 | --> $DIR/duplicate-suggestions.rs:43:50 |
b7449926 XL |
15 | | |
16 | LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } | |
dc9dc135 | 17 | | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
18 | | | | | |
19 | | | | ...and here | |
20 | | | data moved here | |
21 | | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` | |
22 | | | |
60c5eb7d | 23 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 24 | |
dc9dc135 | 25 | error[E0507]: cannot move out of a shared reference |
48663c56 | 26 | --> $DIR/duplicate-suggestions.rs:47:53 |
b7449926 XL |
27 | | |
28 | LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } | |
dc9dc135 | 29 | | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
30 | | | | | |
31 | | | | ...and here | |
32 | | | data moved here | |
33 | | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` | |
34 | | | |
60c5eb7d | 35 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 36 | |
dc9dc135 | 37 | error[E0507]: cannot move out of a shared reference |
48663c56 | 38 | --> $DIR/duplicate-suggestions.rs:51:11 |
b7449926 XL |
39 | | |
40 | LL | match &(e.clone(), e.clone()) { | |
dc9dc135 | 41 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 42 | LL | |
b7449926 XL |
43 | LL | &(Either::One(_t), Either::Two(_u)) => (), |
44 | | -- -- ...and here | |
45 | | | | |
46 | | data moved here | |
47 | ... | |
48 | LL | &(Either::Two(_t), Either::One(_u)) => (), | |
49 | | -- ...and here -- ...and here | |
50 | | | |
60c5eb7d | 51 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 XL |
52 | help: consider removing the `&` |
53 | | | |
54 | LL | (Either::One(_t), Either::Two(_u)) => (), | |
55 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
56 | help: consider removing the `&` | |
57 | | | |
58 | LL | (Either::Two(_t), Either::One(_u)) => (), | |
59 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
60 | ||
dc9dc135 | 61 | error[E0507]: cannot move out of a shared reference |
48663c56 | 62 | --> $DIR/duplicate-suggestions.rs:61:11 |
b7449926 XL |
63 | | |
64 | LL | match &(e.clone(), e.clone()) { | |
dc9dc135 | 65 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 66 | LL | |
b7449926 XL |
67 | LL | &(Either::One(_t), Either::Two(_u)) |
68 | | ----------------------------------- | |
69 | | | | | | |
70 | | | | ...and here | |
71 | | | data moved here | |
72 | | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` | |
73 | | | |
60c5eb7d | 74 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 75 | |
dc9dc135 | 76 | error[E0507]: cannot move out of a shared reference |
48663c56 | 77 | --> $DIR/duplicate-suggestions.rs:70:11 |
b7449926 XL |
78 | | |
79 | LL | match &(e.clone(), e.clone()) { | |
dc9dc135 | 80 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 81 | LL | |
b7449926 XL |
82 | LL | &(Either::One(_t), Either::Two(_u)) => (), |
83 | | ----------------------------------- | |
84 | | | | | | |
85 | | | | ...and here | |
86 | | | data moved here | |
87 | | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` | |
88 | | | |
60c5eb7d | 89 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 90 | |
dc9dc135 | 91 | error[E0507]: cannot move out of a shared reference |
48663c56 | 92 | --> $DIR/duplicate-suggestions.rs:78:11 |
b7449926 XL |
93 | | |
94 | LL | match &(e.clone(), e.clone()) { | |
dc9dc135 | 95 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 96 | LL | |
b7449926 XL |
97 | LL | &(Either::One(_t), Either::Two(_u)) => (), |
98 | | ----------------------------------- | |
99 | | | | | | |
100 | | | | ...and here | |
101 | | | data moved here | |
102 | | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` | |
103 | | | |
60c5eb7d | 104 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 105 | |
dc9dc135 | 106 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 107 | --> $DIR/duplicate-suggestions.rs:91:31 |
b7449926 XL |
108 | | |
109 | LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); | |
dc9dc135 | 110 | | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
111 | | | | | |
112 | | | | ...and here | |
113 | | | data moved here | |
114 | | help: consider removing the `&mut`: `(X(_t), X(_u))` | |
115 | | | |
60c5eb7d | 116 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 117 | |
dc9dc135 | 118 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 119 | --> $DIR/duplicate-suggestions.rs:95:54 |
b7449926 XL |
120 | | |
121 | LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } | |
dc9dc135 | 122 | | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
123 | | | | | |
124 | | | | ...and here | |
125 | | | data moved here | |
126 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
127 | | | |
60c5eb7d | 128 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 129 | |
dc9dc135 | 130 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 131 | --> $DIR/duplicate-suggestions.rs:99:57 |
b7449926 XL |
132 | | |
133 | LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } | |
dc9dc135 | 134 | | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
b7449926 XL |
135 | | | | | |
136 | | | | ...and here | |
137 | | | data moved here | |
138 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
139 | | | |
60c5eb7d | 140 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 141 | |
dc9dc135 | 142 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 143 | --> $DIR/duplicate-suggestions.rs:103:11 |
b7449926 XL |
144 | | |
145 | LL | match &mut (em.clone(), em.clone()) { | |
dc9dc135 | 146 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 147 | LL | |
b7449926 XL |
148 | LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
149 | | -- -- ...and here | |
150 | | | | |
151 | | data moved here | |
152 | ... | |
153 | LL | &mut (Either::Two(_t), Either::One(_u)) => (), | |
154 | | -- ...and here -- ...and here | |
155 | | | |
60c5eb7d | 156 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 XL |
157 | help: consider removing the `&mut` |
158 | | | |
159 | LL | (Either::One(_t), Either::Two(_u)) => (), | |
160 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
161 | help: consider removing the `&mut` | |
162 | | | |
163 | LL | (Either::Two(_t), Either::One(_u)) => (), | |
164 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
165 | ||
dc9dc135 | 166 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 167 | --> $DIR/duplicate-suggestions.rs:113:11 |
b7449926 XL |
168 | | |
169 | LL | match &mut (em.clone(), em.clone()) { | |
dc9dc135 | 170 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 171 | LL | |
b7449926 XL |
172 | LL | &mut (Either::One(_t), Either::Two(_u)) |
173 | | --------------------------------------- | |
174 | | | | | | |
175 | | | | ...and here | |
176 | | | data moved here | |
177 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
178 | | | |
60c5eb7d | 179 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 180 | |
dc9dc135 | 181 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 182 | --> $DIR/duplicate-suggestions.rs:122:11 |
b7449926 XL |
183 | | |
184 | LL | match &mut (em.clone(), em.clone()) { | |
dc9dc135 | 185 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 186 | LL | |
b7449926 XL |
187 | LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
188 | | --------------------------------------- | |
189 | | | | | | |
190 | | | | ...and here | |
191 | | | data moved here | |
192 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
193 | | | |
60c5eb7d | 194 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 195 | |
dc9dc135 | 196 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 197 | --> $DIR/duplicate-suggestions.rs:130:11 |
b7449926 XL |
198 | | |
199 | LL | match &mut (em.clone(), em.clone()) { | |
dc9dc135 | 200 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 201 | LL | |
b7449926 XL |
202 | LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
203 | | --------------------------------------- | |
204 | | | | | | |
205 | | | | ...and here | |
206 | | | data moved here | |
207 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
208 | | | |
60c5eb7d | 209 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 210 | |
dc9dc135 | 211 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 212 | --> $DIR/duplicate-suggestions.rs:138:11 |
b7449926 XL |
213 | | |
214 | LL | match &mut (em.clone(), em.clone()) { | |
dc9dc135 | 215 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
532ac7d7 | 216 | LL | |
b7449926 XL |
217 | LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
218 | | --------------------------------------- | |
219 | | | | | | |
220 | | | | ...and here | |
221 | | | data moved here | |
222 | | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` | |
223 | | | |
60c5eb7d | 224 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 225 | |
dc9dc135 | 226 | error[E0507]: cannot move out of a shared reference |
48663c56 | 227 | --> $DIR/duplicate-suggestions.rs:86:11 |
b7449926 XL |
228 | | |
229 | LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } | |
230 | | ^^^^--^^^^^--^^ | |
231 | | | | | | |
232 | | | | ...and here | |
233 | | | data moved here | |
b7449926 XL |
234 | | help: consider removing the `&`: `(X(_t), X(_u))` |
235 | | | |
60c5eb7d | 236 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 | 237 | |
dc9dc135 | 238 | error[E0507]: cannot move out of a mutable reference |
48663c56 | 239 | --> $DIR/duplicate-suggestions.rs:146:11 |
b7449926 XL |
240 | | |
241 | LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } | |
242 | | ^^^^^^^^--^^^^^--^^ | |
243 | | | | | | |
244 | | | | ...and here | |
245 | | | data moved here | |
b7449926 XL |
246 | | help: consider removing the `&mut`: `(X(_t), X(_u))` |
247 | | | |
60c5eb7d | 248 | = note: move occurs because these variables have types that don't implement the `Copy` trait |
b7449926 XL |
249 | |
250 | error: aborting due to 17 previous errors | |
251 | ||
252 | For more information about this error, try `rustc --explain E0507`. |