fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.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 | 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 | ----------------------------------- 69 | | | | 70 | | | ...and here 71 | | data moved here 72 | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` 73 | 74 = note: move occurs because these variables have types that don't implement the `Copy` trait 75 76error[E0507]: cannot move out of a shared reference 77 --> $DIR/duplicate-suggestions.rs:70:11 78 | 79LL | match &(e.clone(), e.clone()) { 80 | ^^^^^^^^^^^^^^^^^^^^^^^ 81LL | 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 | 89 = note: move occurs because these variables have types that don't implement the `Copy` trait 90 91error[E0507]: cannot move out of a shared reference 92 --> $DIR/duplicate-suggestions.rs:78:11 93 | 94LL | match &(e.clone(), e.clone()) { 95 | ^^^^^^^^^^^^^^^^^^^^^^^ 96LL | 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 | 104 = note: move occurs because these variables have types that don't implement the `Copy` trait 105 106error[E0507]: cannot move out of a mutable reference 107 --> $DIR/duplicate-suggestions.rs:91:31 108 | 109LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); 110 | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 111 | | | | 112 | | | ...and here 113 | | data moved here 114 | help: consider removing the `&mut`: `(X(_t), X(_u))` 115 | 116 = note: move occurs because these variables have types that don't implement the `Copy` trait 117 118error[E0507]: cannot move out of a mutable reference 119 --> $DIR/duplicate-suggestions.rs:95:54 120 | 121LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 122 | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 123 | | | | 124 | | | ...and here 125 | | data moved here 126 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 127 | 128 = note: move occurs because these variables have types that don't implement the `Copy` trait 129 130error[E0507]: cannot move out of a mutable reference 131 --> $DIR/duplicate-suggestions.rs:99:57 132 | 133LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } 134 | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 135 | | | | 136 | | | ...and here 137 | | data moved here 138 | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` 139 | 140 = note: move occurs because these variables have types that don't implement the `Copy` trait 141 142error[E0507]: cannot move out of a mutable reference 143 --> $DIR/duplicate-suggestions.rs:103:11 144 | 145LL | match &mut (em.clone(), em.clone()) { 146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 147LL | 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 | 156 = note: move occurs because these variables have types that don't implement the `Copy` trait 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 166error[E0507]: cannot move out of a mutable reference 167 --> $DIR/duplicate-suggestions.rs:113:11 168 | 169LL | match &mut (em.clone(), em.clone()) { 170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 171LL | 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 | 179 = note: move occurs because these variables have types that don't implement the `Copy` trait 180 181error[E0507]: cannot move out of a mutable reference 182 --> $DIR/duplicate-suggestions.rs:122:11 183 | 184LL | match &mut (em.clone(), em.clone()) { 185 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 186LL | 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 | 194 = note: move occurs because these variables have types that don't implement the `Copy` trait 195 196error[E0507]: cannot move out of a mutable reference 197 --> $DIR/duplicate-suggestions.rs:130:11 198 | 199LL | match &mut (em.clone(), em.clone()) { 200 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201LL | 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 | 209 = note: move occurs because these variables have types that don't implement the `Copy` trait 210 211error[E0507]: cannot move out of a mutable reference 212 --> $DIR/duplicate-suggestions.rs:138:11 213 | 214LL | match &mut (em.clone(), em.clone()) { 215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 216LL | 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 | 224 = note: move occurs because these variables have types that don't implement the `Copy` trait 225 226error[E0507]: cannot move out of a shared reference 227 --> $DIR/duplicate-suggestions.rs:86:11 228 | 229LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } 230 | ^^^^--^^^^^--^^ 231 | | | | 232 | | | ...and here 233 | | data moved here 234 | help: consider removing the `&`: `(X(_t), X(_u))` 235 | 236 = note: move occurs because these variables have types that don't implement the `Copy` trait 237 238error[E0507]: cannot move out of a mutable reference 239 --> $DIR/duplicate-suggestions.rs:146:11 240 | 241LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } 242 | ^^^^^^^^--^^^^^--^^ 243 | | | | 244 | | | ...and here 245 | | data moved here 246 | help: consider removing the `&mut`: `(X(_t), X(_u))` 247 | 248 = note: move occurs because these variables have types that don't implement the `Copy` trait 249 250error: aborting due to 17 previous errors 251 252For more information about this error, try `rustc --explain E0507`.