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