]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / suggestions / dont-suggest-ref / duplicate-suggestions.stderr
CommitLineData
dc9dc135 1error[E0507]: cannot move out of a shared reference
48663c56 2 --> $DIR/duplicate-suggestions.rs:39:27
b7449926
XL
3 |
4LL | 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 13error[E0507]: cannot move out of a shared reference
48663c56 14 --> $DIR/duplicate-suggestions.rs:43:50
b7449926
XL
15 |
16LL | 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 25error[E0507]: cannot move out of a shared reference
48663c56 26 --> $DIR/duplicate-suggestions.rs:47:53
b7449926
XL
27 |
28LL | 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 37error[E0507]: cannot move out of a shared reference
48663c56 38 --> $DIR/duplicate-suggestions.rs:51:11
b7449926
XL
39 |
40LL | match &(e.clone(), e.clone()) {
dc9dc135 41 | ^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 42LL |
b7449926
XL
43LL | &(Either::One(_t), Either::Two(_u)) => (),
44 | -- -- ...and here
45 | |
46 | data moved here
47...
48LL | &(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
52help: consider removing the `&`
53 |
54LL | (Either::One(_t), Either::Two(_u)) => (),
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56help: consider removing the `&`
57 |
58LL | (Either::Two(_t), Either::One(_u)) => (),
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
dc9dc135 61error[E0507]: cannot move out of a shared reference
48663c56 62 --> $DIR/duplicate-suggestions.rs:61:11
b7449926
XL
63 |
64LL | match &(e.clone(), e.clone()) {
dc9dc135 65 | ^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 66LL |
b7449926
XL
67LL | &(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 76error[E0507]: cannot move out of a shared reference
48663c56 77 --> $DIR/duplicate-suggestions.rs:70:11
b7449926
XL
78 |
79LL | match &(e.clone(), e.clone()) {
dc9dc135 80 | ^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 81LL |
b7449926
XL
82LL | &(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 91error[E0507]: cannot move out of a shared reference
48663c56 92 --> $DIR/duplicate-suggestions.rs:78:11
b7449926
XL
93 |
94LL | match &(e.clone(), e.clone()) {
dc9dc135 95 | ^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 96LL |
b7449926
XL
97LL | &(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 106error[E0507]: cannot move out of a mutable reference
48663c56 107 --> $DIR/duplicate-suggestions.rs:91:31
b7449926
XL
108 |
109LL | 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 118error[E0507]: cannot move out of a mutable reference
48663c56 119 --> $DIR/duplicate-suggestions.rs:95:54
b7449926
XL
120 |
121LL | 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 130error[E0507]: cannot move out of a mutable reference
48663c56 131 --> $DIR/duplicate-suggestions.rs:99:57
b7449926
XL
132 |
133LL | 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 142error[E0507]: cannot move out of a mutable reference
48663c56 143 --> $DIR/duplicate-suggestions.rs:103:11
b7449926
XL
144 |
145LL | match &mut (em.clone(), em.clone()) {
dc9dc135 146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 147LL |
b7449926
XL
148LL | &mut (Either::One(_t), Either::Two(_u)) => (),
149 | -- -- ...and here
150 | |
151 | data moved here
152...
153LL | &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
157help: consider removing the `&mut`
158 |
159LL | (Either::One(_t), Either::Two(_u)) => (),
160 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161help: consider removing the `&mut`
162 |
163LL | (Either::Two(_t), Either::One(_u)) => (),
164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165
dc9dc135 166error[E0507]: cannot move out of a mutable reference
48663c56 167 --> $DIR/duplicate-suggestions.rs:113:11
b7449926
XL
168 |
169LL | match &mut (em.clone(), em.clone()) {
dc9dc135 170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 171LL |
b7449926
XL
172LL | &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 181error[E0507]: cannot move out of a mutable reference
48663c56 182 --> $DIR/duplicate-suggestions.rs:122:11
b7449926
XL
183 |
184LL | match &mut (em.clone(), em.clone()) {
dc9dc135 185 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 186LL |
b7449926
XL
187LL | &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 196error[E0507]: cannot move out of a mutable reference
48663c56 197 --> $DIR/duplicate-suggestions.rs:130:11
b7449926
XL
198 |
199LL | match &mut (em.clone(), em.clone()) {
dc9dc135 200 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 201LL |
b7449926
XL
202LL | &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 211error[E0507]: cannot move out of a mutable reference
48663c56 212 --> $DIR/duplicate-suggestions.rs:138:11
b7449926
XL
213 |
214LL | match &mut (em.clone(), em.clone()) {
dc9dc135 215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
532ac7d7 216LL |
b7449926
XL
217LL | &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 226error[E0507]: cannot move out of a shared reference
48663c56 227 --> $DIR/duplicate-suggestions.rs:86:11
b7449926
XL
228 |
229LL | 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 238error[E0507]: cannot move out of a mutable reference
48663c56 239 --> $DIR/duplicate-suggestions.rs:146:11
b7449926
XL
240 |
241LL | 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
250error: aborting due to 17 previous errors
251
252For more information about this error, try `rustc --explain E0507`.