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