| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:51:27 |
| | |
| LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone()); |
| | --------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(X(_t), X(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:51:13 |
| | |
| LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone()); |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:55:50 |
| | |
| LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } |
| | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:55:26 |
| | |
| LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:59:53 |
| | |
| LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } |
| | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:59:29 |
| | |
| LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { } |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:63:11 |
| | |
| LL | match &(e.clone(), e.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | -- -- ...and here |
| | | |
| | data moved here |
| ... |
| LL | &(Either::Two(_t), Either::One(_u)) => (), |
| | -- ...and here -- ...and here |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:65:23 |
| | |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| ... |
| LL | &(Either::Two(_t), Either::One(_u)) => (), |
| | ^^ ^^ |
| help: consider removing the `&` |
| | |
| LL | (Either::One(_t), Either::Two(_u)) => (), |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| help: consider removing the `&` |
| | |
| LL | (Either::Two(_t), Either::One(_u)) => (), |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:73:11 |
| | |
| LL | match &(e.clone(), e.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &(Either::One(_t), Either::Two(_u)) |
| | ----------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:75:23 |
| | |
| LL | &(Either::One(_t), Either::Two(_u)) |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:82:11 |
| | |
| LL | match &(e.clone(), e.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | ----------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:84:23 |
| | |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:90:11 |
| | |
| LL | match &(e.clone(), e.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | ----------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:92:23 |
| | |
| LL | &(Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:103:31 |
| | |
| LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); |
| | ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(X(_t), X(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:103:17 |
| | |
| LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone()); |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:107:54 |
| | |
| LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } |
| | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:107:30 |
| | |
| LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:111:57 |
| | |
| LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } |
| | --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:111:33 |
| | |
| LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { } |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:115:11 |
| | |
| LL | match &mut (em.clone(), em.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | -- -- ...and here |
| | | |
| | data moved here |
| ... |
| LL | &mut (Either::Two(_t), Either::One(_u)) => (), |
| | -- ...and here -- ...and here |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:117:27 |
| | |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| ... |
| LL | &mut (Either::Two(_t), Either::One(_u)) => (), |
| | ^^ ^^ |
| help: consider removing the `&mut` |
| | |
| LL | (Either::One(_t), Either::Two(_u)) => (), |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| help: consider removing the `&mut` |
| | |
| LL | (Either::Two(_t), Either::One(_u)) => (), |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:125:11 |
| | |
| LL | match &mut (em.clone(), em.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &mut (Either::One(_t), Either::Two(_u)) |
| | --------------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:127:27 |
| | |
| LL | &mut (Either::One(_t), Either::Two(_u)) |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:134:11 |
| | |
| LL | match &mut (em.clone(), em.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | --------------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:136:27 |
| | |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:142:11 |
| | |
| LL | match &mut (em.clone(), em.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | --------------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:144:27 |
| | |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:150:11 |
| | |
| LL | match &mut (em.clone(), em.clone()) { |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content |
| LL | //~^ ERROR cannot move |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | --------------------------------------- |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:152:27 |
| | |
| LL | &mut (Either::One(_t), Either::Two(_u)) => (), |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:98:11 |
| | |
| LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } |
| | ^^^^--^^^^^--^^ |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | cannot move out of borrowed content |
| | help: consider removing the `&`: `(X(_t), X(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:98:15 |
| | |
| LL | fn f5(&(X(_t), X(_u)): &(X, X)) { } |
| | ^^ ^^ |
| |
| error[E0507]: cannot move out of borrowed content |
| --> $DIR/duplicate-suggestions.rs:158:11 |
| | |
| LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } |
| | ^^^^^^^^--^^^^^--^^ |
| | | | | |
| | | | ...and here |
| | | data moved here |
| | cannot move out of borrowed content |
| | help: consider removing the `&mut`: `(X(_t), X(_u))` |
| | |
| note: move occurs because these variables have types that don't implement the `Copy` trait |
| --> $DIR/duplicate-suggestions.rs:158:19 |
| | |
| LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { } |
| | ^^ ^^ |
| |
| error: aborting due to 17 previous errors |
| |
| For more information about this error, try `rustc --explain E0507`. |