fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0507]: cannot move out of a shared reference 2 --> $DIR/duplicate-suggestions.rs:39:27 3 | 4LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone()); 5 | --------------- ^^^^^^^^^^^^^^^^^^^^^^^ 6 | | | | 7 | | | ...and here 8 | | data moved here 9 | help: consider removing the `&`: `(X(_t), X(_u))` 10 | 11note: move occurs because these variables have types that don't implement the `Copy` trait 12 --> $DIR/duplicate-suggestions.rs:39:13 13 | 14LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone()); 15 | ^^ ^^ 16 17error[E0507]: cannot move out of a shared reference 18 --> $DIR/duplicate-suggestions.rs:43:50 19 | 20LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } 21 | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ 22 | | | | 23 | | | ...and here 24 | | data moved here 25 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 26 | 27note: move occurs because these variables have types that don't implement the `Copy` trait 28 --> $DIR/duplicate-suggestions.rs:43:26 29 | 30LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } 31 | ^^ ^^ 32 33error[E0507]: cannot move out of a shared reference 34 --> $DIR/duplicate-suggestions.rs:47:53 35 | 36LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } 37 | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ 38 | | | | 39 | | | ...and here 40 | | data moved here 41 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 42 | 43note: move occurs because these variables have types that don't implement the `Copy` trait 44 --> $DIR/duplicate-suggestions.rs:47:29 45 | 46LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } 47 | ^^ ^^ 48 49error[E0507]: cannot move out of a shared reference 50 --> $DIR/duplicate-suggestions.rs:51:11 51 | 52LL | match &(e.clone(), e.clone()) { 53 | ^^^^^^^^^^^^^^^^^^^^^^^ 54LL | 55LL | &(Either::One(_t), Either::Two(_u)) => (), 56 | -- -- ...and here 57 | | 58 | data moved here 59... 60LL | &(Either::Two(_t), Either::One(_u)) => (), 61 | -- ...and here -- ...and here 62 | 63note: move occurs because these variables have types that don't implement the `Copy` trait 64 --> $DIR/duplicate-suggestions.rs:53:23 65 | 66LL | &(Either::One(_t), Either::Two(_u)) => (), 67 | ^^ ^^ 68... 69LL | &(Either::Two(_t), Either::One(_u)) => (), 70 | ^^ ^^ 71help: consider removing the `&` 72 | 73LL | (Either::One(_t), Either::Two(_u)) => (), 74 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 75help: consider removing the `&` 76 | 77LL | (Either::Two(_t), Either::One(_u)) => (), 78 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 79 80error[E0507]: cannot move out of a shared reference 81 --> $DIR/duplicate-suggestions.rs:61:11 82 | 83LL | match &(e.clone(), e.clone()) { 84 | ^^^^^^^^^^^^^^^^^^^^^^^ 85LL | 86LL | &(Either::One(_t), Either::Two(_u)) 87 | ----------------------------------- 88 | | | | 89 | | | ...and here 90 | | data moved here 91 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 92 | 93note: move occurs because these variables have types that don't implement the `Copy` trait 94 --> $DIR/duplicate-suggestions.rs:63:23 95 | 96LL | &(Either::One(_t), Either::Two(_u)) 97 | ^^ ^^ 98 99error[E0507]: cannot move out of a shared reference 100 --> $DIR/duplicate-suggestions.rs:70:11 101 | 102LL | match &(e.clone(), e.clone()) { 103 | ^^^^^^^^^^^^^^^^^^^^^^^ 104LL | 105LL | &(Either::One(_t), Either::Two(_u)) => (), 106 | ----------------------------------- 107 | | | | 108 | | | ...and here 109 | | data moved here 110 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 111 | 112note: move occurs because these variables have types that don't implement the `Copy` trait 113 --> $DIR/duplicate-suggestions.rs:72:23 114 | 115LL | &(Either::One(_t), Either::Two(_u)) => (), 116 | ^^ ^^ 117 118error[E0507]: cannot move out of a shared reference 119 --> $DIR/duplicate-suggestions.rs:78:11 120 | 121LL | match &(e.clone(), e.clone()) { 122 | ^^^^^^^^^^^^^^^^^^^^^^^ 123LL | 124LL | &(Either::One(_t), Either::Two(_u)) => (), 125 | ----------------------------------- 126 | | | | 127 | | | ...and here 128 | | data moved here 129 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 130 | 131note: move occurs because these variables have types that don't implement the `Copy` trait 132 --> $DIR/duplicate-suggestions.rs:80:23 133 | 134LL | &(Either::One(_t), Either::Two(_u)) => (), 135 | ^^ ^^ 136 137error[E0507]: cannot move out of a mutable reference 138 --> $DIR/duplicate-suggestions.rs:91:31 139 | 140LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); 141 | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 142 | | | | 143 | | | ...and here 144 | | data moved here 145 | help: consider removing the `&mut`: `(X(_t), X(_u))` 146 | 147note: move occurs because these variables have types that don't implement the `Copy` trait 148 --> $DIR/duplicate-suggestions.rs:91:17 149 | 150LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); 151 | ^^ ^^ 152 153error[E0507]: cannot move out of a mutable reference 154 --> $DIR/duplicate-suggestions.rs:95:54 155 | 156LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 157 | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158 | | | | 159 | | | ...and here 160 | | data moved here 161 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 162 | 163note: move occurs because these variables have types that don't implement the `Copy` trait 164 --> $DIR/duplicate-suggestions.rs:95:30 165 | 166LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 167 | ^^ ^^ 168 169error[E0507]: cannot move out of a mutable reference 170 --> $DIR/duplicate-suggestions.rs:99:57 171 | 172LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 173 | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 174 | | | | 175 | | | ...and here 176 | | data moved here 177 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 178 | 179note: move occurs because these variables have types that don't implement the `Copy` trait 180 --> $DIR/duplicate-suggestions.rs:99:33 181 | 182LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 183 | ^^ ^^ 184 185error[E0507]: cannot move out of a mutable reference 186 --> $DIR/duplicate-suggestions.rs:103:11 187 | 188LL | match &mut (em.clone(), em.clone()) { 189 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190LL | 191LL | &mut (Either::One(_t), Either::Two(_u)) => (), 192 | -- -- ...and here 193 | | 194 | data moved here 195... 196LL | &mut (Either::Two(_t), Either::One(_u)) => (), 197 | -- ...and here -- ...and here 198 | 199note: move occurs because these variables have types that don't implement the `Copy` trait 200 --> $DIR/duplicate-suggestions.rs:105:27 201 | 202LL | &mut (Either::One(_t), Either::Two(_u)) => (), 203 | ^^ ^^ 204... 205LL | &mut (Either::Two(_t), Either::One(_u)) => (), 206 | ^^ ^^ 207help: consider removing the `&mut` 208 | 209LL | (Either::One(_t), Either::Two(_u)) => (), 210 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211help: consider removing the `&mut` 212 | 213LL | (Either::Two(_t), Either::One(_u)) => (), 214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215 216error[E0507]: cannot move out of a mutable reference 217 --> $DIR/duplicate-suggestions.rs:113:11 218 | 219LL | match &mut (em.clone(), em.clone()) { 220 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 221LL | 222LL | &mut (Either::One(_t), Either::Two(_u)) 223 | --------------------------------------- 224 | | | | 225 | | | ...and here 226 | | data moved here 227 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 228 | 229note: move occurs because these variables have types that don't implement the `Copy` trait 230 --> $DIR/duplicate-suggestions.rs:115:27 231 | 232LL | &mut (Either::One(_t), Either::Two(_u)) 233 | ^^ ^^ 234 235error[E0507]: cannot move out of a mutable reference 236 --> $DIR/duplicate-suggestions.rs:122:11 237 | 238LL | match &mut (em.clone(), em.clone()) { 239 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 240LL | 241LL | &mut (Either::One(_t), Either::Two(_u)) => (), 242 | --------------------------------------- 243 | | | | 244 | | | ...and here 245 | | data moved here 246 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 247 | 248note: move occurs because these variables have types that don't implement the `Copy` trait 249 --> $DIR/duplicate-suggestions.rs:124:27 250 | 251LL | &mut (Either::One(_t), Either::Two(_u)) => (), 252 | ^^ ^^ 253 254error[E0507]: cannot move out of a mutable reference 255 --> $DIR/duplicate-suggestions.rs:130:11 256 | 257LL | match &mut (em.clone(), em.clone()) { 258 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259LL | 260LL | &mut (Either::One(_t), Either::Two(_u)) => (), 261 | --------------------------------------- 262 | | | | 263 | | | ...and here 264 | | data moved here 265 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 266 | 267note: move occurs because these variables have types that don't implement the `Copy` trait 268 --> $DIR/duplicate-suggestions.rs:132:27 269 | 270LL | &mut (Either::One(_t), Either::Two(_u)) => (), 271 | ^^ ^^ 272 273error[E0507]: cannot move out of a mutable reference 274 --> $DIR/duplicate-suggestions.rs:138:11 275 | 276LL | match &mut (em.clone(), em.clone()) { 277 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278LL | 279LL | &mut (Either::One(_t), Either::Two(_u)) => (), 280 | --------------------------------------- 281 | | | | 282 | | | ...and here 283 | | data moved here 284 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 285 | 286note: move occurs because these variables have types that don't implement the `Copy` trait 287 --> $DIR/duplicate-suggestions.rs:140:27 288 | 289LL | &mut (Either::One(_t), Either::Two(_u)) => (), 290 | ^^ ^^ 291 292error[E0507]: cannot move out of a shared reference 293 --> $DIR/duplicate-suggestions.rs:86:11 294 | 295LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } 296 | ^^^^--^^^^^--^^ 297 | | | | 298 | | | ...and here 299 | | data moved here 300 | help: consider removing the `&`: `(X(_t), X(_u))` 301 | 302note: move occurs because these variables have types that don't implement the `Copy` trait 303 --> $DIR/duplicate-suggestions.rs:86:15 304 | 305LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } 306 | ^^ ^^ 307 308error[E0507]: cannot move out of a mutable reference 309 --> $DIR/duplicate-suggestions.rs:146:11 310 | 311LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } 312 | ^^^^^^^^--^^^^^--^^ 313 | | | | 314 | | | ...and here 315 | | data moved here 316 | help: consider removing the `&mut`: `(X(_t), X(_u))` 317 | 318note: move occurs because these variables have types that don't implement the `Copy` trait 319 --> $DIR/duplicate-suggestions.rs:146:19 320 | 321LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } 322 | ^^ ^^ 323 324error: aborting due to 17 previous errors 325 326For more information about this error, try `rustc --explain E0507`.