rust/tests/ui/suggestions/dont-suggest-ref/duplicate-suggestions.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

310 lines
12 KiB
Plaintext
Raw Normal View History

error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:39:27
2018-08-16 00:36:19 -05:00
|
LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone());
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - let &(X(_t), X(_u)) = &(x.clone(), x.clone());
LL + let (X(_t), X(_u)) = &(x.clone(), x.clone());
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:42:50
2018-08-16 00:36:19 -05:00
|
LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
LL + if let (Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:45:53
2018-08-16 00:36:19 -05:00
|
LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
LL + while let (Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:48:11
2018-08-16 00:36:19 -05:00
|
LL | match &(e.clone(), e.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &(Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
LL |
2018-08-16 00:36:19 -05:00
LL | &(Either::Two(_t), Either::One(_u)) => (),
| -- ...and here -- ...and here
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
2018-08-16 00:36:19 -05:00
|
LL - &(Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
help: consider removing the borrow
|
LL - &(Either::Two(_t), Either::One(_u)) => (),
LL + (Either::Two(_t), Either::One(_u)) => (),
2018-08-16 00:36:19 -05:00
|
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:56:11
2018-08-16 00:36:19 -05:00
|
LL | match &(e.clone(), e.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &(Either::One(_t), Either::Two(_u))
2019-12-27 11:53:00 -06:00
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
2019-12-27 11:53:00 -06:00
|
LL - &(Either::One(_t), Either::Two(_u))
LL + (Either::One(_t), Either::Two(_u))
2019-12-27 11:53:00 -06:00
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:64:11
2018-08-16 00:36:19 -05:00
|
LL | match &(e.clone(), e.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &(Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - &(Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:71:11
2018-08-16 00:36:19 -05:00
|
LL | match &(e.clone(), e.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &(Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - &(Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:82:31
2018-08-16 00:36:19 -05:00
|
LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone());
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone());
LL + let (X(_t), X(_u)) = &mut (xm.clone(), xm.clone());
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:85:54
2018-08-16 00:36:19 -05:00
|
LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
LL + if let (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:88:57
2018-08-16 00:36:19 -05:00
|
LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
| -- -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
LL + while let (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:91:11
2018-08-16 00:36:19 -05:00
|
LL | match &mut (em.clone(), em.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::Two(_t), Either::One(_u)) => (),
| -- ...and here -- ...and here
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - &mut (Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
2018-08-16 00:36:19 -05:00
|
help: consider removing the mutable borrow
|
LL - &mut (Either::Two(_t), Either::One(_u)) => (),
LL + (Either::Two(_t), Either::One(_u)) => (),
2018-08-16 00:36:19 -05:00
|
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:99:11
2018-08-16 00:36:19 -05:00
|
LL | match &mut (em.clone(), em.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::One(_t), Either::Two(_u))
2019-12-27 11:53:00 -06:00
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
2019-12-27 11:53:00 -06:00
|
LL - &mut (Either::One(_t), Either::Two(_u))
LL + (Either::One(_t), Either::Two(_u))
2019-12-27 11:53:00 -06:00
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:107:11
2018-08-16 00:36:19 -05:00
|
LL | match &mut (em.clone(), em.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - &mut (Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:114:11
2018-08-16 00:36:19 -05:00
|
LL | match &mut (em.clone(), em.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - &mut (Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:121:11
2018-08-16 00:36:19 -05:00
|
LL | match &mut (em.clone(), em.clone()) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-03-09 06:03:44 -06:00
LL |
2018-08-16 00:36:19 -05:00
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
| -- -- ...and here
| |
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - &mut (Either::One(_t), Either::Two(_u)) => (),
LL + (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a shared reference
--> $DIR/duplicate-suggestions.rs:78:11
2018-08-16 00:36:19 -05:00
|
LL | fn f5(&(X(_t), X(_u)): &(X, X)) { }
| ^^^^--^^^^^--^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the borrow
|
LL - fn f5(&(X(_t), X(_u)): &(X, X)) { }
LL + fn f5((X(_t), X(_u)): &(X, X)) { }
|
2018-08-16 00:36:19 -05:00
error[E0507]: cannot move out of a mutable reference
--> $DIR/duplicate-suggestions.rs:128:11
2018-08-16 00:36:19 -05:00
|
LL | fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { }
| ^^^^^^^^--^^^^^--^^
| | |
| | ...and here
| data moved here
2018-08-16 00:36:19 -05:00
|
2019-11-25 14:32:57 -06:00
= note: move occurs because these variables have types that don't implement the `Copy` trait
help: consider removing the mutable borrow
|
LL - fn f6(&mut (X(_t), X(_u)): &mut (X, X)) { }
LL + fn f6((X(_t), X(_u)): &mut (X, X)) { }
|
2018-08-16 00:36:19 -05:00
error: aborting due to 17 previous errors
For more information about this error, try `rustc --explain E0507`.