2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `s` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:38:17
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *s;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let X(_t) = *s;
|
|
|
|
LL + let X(_t) = s;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:41:30
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - if let Either::One(_t) = *r { }
|
|
|
|
LL + if let Either::One(_t) = r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:44:33
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - while let Either::One(_t) = *r { }
|
|
|
|
LL + while let Either::One(_t) = r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `Two` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:47:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *r {
|
|
|
|
LL + match r {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:53:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *r {
|
|
|
|
LL + match r {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `sm` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:61:17
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *sm;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - let X(_t) = *sm;
|
|
|
|
LL + let X(_t) = sm;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:64:30
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - if let Either::One(_t) = *rm { }
|
|
|
|
LL + if let Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:67:33
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - while let Either::One(_t) = *rm { }
|
|
|
|
LL + while let Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `Two` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:70:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *rm {
|
|
|
|
LL + match rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:76:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *rm {
|
|
|
|
LL + match rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:83:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2022-12-09 15:01:41 -06:00
|
|
|
help: consider removing the dereference here
|
|
|
|
|
|
|
|
|
LL - match *rm {
|
|
|
|
LL + match rm {
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<X>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:91:17
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
2018-08-12 18:07:19 -05:00
|
|
|
LL | let X(_t) = vs[0];
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | let X(_t) = &vs[0];
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:94:30
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vr[0] { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = &vr[0] { }
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:97:33
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vr[0] { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = &vr[0] { }
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:100:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vr[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^^
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &vr[0] {
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:106:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vr[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^^
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &vr[0] {
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<X>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:114:17
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = vsm[0];
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | let X(_t) = &vsm[0];
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:117:30
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vrm[0] { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = &vrm[0] { }
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:120:33
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vrm[0] { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = &vrm[0] { }
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:123:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^^^
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &vrm[0] {
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:129:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^^^
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &vrm[0] {
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0507]: cannot move out of index of `Vec<Either>`
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:136:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2022-12-08 11:02:54 -06:00
|
|
|
| ^^^^^^
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing here
|
|
|
|
|
|
|
|
|
LL | match &vrm[0] {
|
|
|
|
| +
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `s` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:146:18
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = s;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - let &X(_t) = s;
|
|
|
|
LL + let X(_t) = s;
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:149:31
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - if let &Either::One(_t) = r { }
|
|
|
|
LL + if let Either::One(_t) = r { }
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:152:34
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = r { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - while let &Either::One(_t) = r { }
|
|
|
|
LL + while let Either::One(_t) = r { }
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `Two` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:155:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider removing the borrow
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
LL - &Either::One(_t)
|
|
|
|
LL + Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:162:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - &Either::One(_t) => (),
|
|
|
|
LL + Either::One(_t) => (),
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `r` as enum variant `One` which is behind a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:168:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - &Either::One(_t) => (),
|
|
|
|
LL + Either::One(_t) => (),
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `sm` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:178:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = sm;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - let &mut X(_t) = sm;
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + let X(_t) = sm;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:181:35
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - if let &mut Either::One(_t) = rm { }
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + if let Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:184:38
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - while let &mut Either::One(_t) = rm { }
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + while let Either::One(_t) = rm { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `Two` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:187:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
2022-12-08 11:02:54 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::Two(_t) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| -- ...and here
|
2018-08-07 03:02:39 -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
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider removing the mutable borrow
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::Two(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::Two(_t) => (),
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:194:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:200:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2022-07-22 16:35:35 -05:00
|
|
|
error[E0507]: cannot move out of `rm` as enum variant `One` which is behind a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:206:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:220:21
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | let (&X(_t),) = (&x.clone(),);
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | let (&X(ref _t),) = (&x.clone(),);
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:223:34
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | if let (&Either::One(_t),) = (&e.clone(),) { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | if let (&Either::One(ref _t),) = (&e.clone(),) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:226:37
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | while let (&Either::One(_t),) = (&e.clone(),) { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | while let (&Either::One(ref _t),) = (&e.clone(),) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:229:11
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | match (&e.clone(),) {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-13 17:52:23 -05:00
|
|
|
LL | (&Either::One(_t),)
|
2019-05-05 06:02:32 -05:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | (&Either::One(ref _t),)
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:239:25
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | let (&mut X(_t),) = (&mut xm.clone(),);
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | let (&mut X(ref _t),) = (&mut xm.clone(),);
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:242:38
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | if let (&mut Either::One(_t),) = (&mut em.clone(),) { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | if let (&mut Either::One(ref _t),) = (&mut em.clone(),) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:245:41
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | while let (&mut Either::One(_t),) = (&mut em.clone(),) { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^^^^^^^^^^^^^
|
2018-08-13 17:52:23 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
2019-05-05 06:02:32 -05:00
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | while let (&mut Either::One(ref _t),) = (&mut em.clone(),) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:248:11
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | match (&mut em.clone(),) {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-13 17:52:23 -05:00
|
|
|
LL | (&mut Either::One(_t),) => (),
|
|
|
|
| -- data moved here
|
2022-12-08 19:14:56 -06:00
|
|
|
LL |
|
2018-08-13 17:52:23 -05:00
|
|
|
LL | (&mut Either::Two(_t),) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| -- ...and here
|
2018-08-13 17:52:23 -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
|
2022-12-08 19:14:56 -06:00
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | (&mut Either::One(ref _t),) => (),
|
|
|
|
| +++
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | (&mut Either::Two(ref _t),) => (),
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:261:18
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = &x;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - let &X(_t) = &x;
|
|
|
|
LL + let X(_t) = &x;
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:264:31
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = &e { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - if let &Either::One(_t) = &e { }
|
|
|
|
LL + if let Either::One(_t) = &e { }
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:267:34
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = &e { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - while let &Either::One(_t) = &e { }
|
|
|
|
LL + while let Either::One(_t) = &e { }
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:270:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider removing the borrow
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
LL - &Either::One(_t)
|
|
|
|
LL + Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:277:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - &Either::One(_t) => (),
|
|
|
|
LL + Either::One(_t) => (),
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:283:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - &Either::One(_t) => (),
|
|
|
|
LL + Either::One(_t) => (),
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:290:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = &mut xm;
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - let &mut X(_t) = &mut xm;
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + let X(_t) = &mut xm;
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:293:35
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = &mut em { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - if let &mut Either::One(_t) = &mut em { }
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + if let Either::One(_t) = &mut em { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:296:38
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = &mut em { }
|
2022-12-08 11:02:54 -06:00
|
|
|
| -- ^^^^^^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - while let &mut Either::One(_t) = &mut em { }
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + while let Either::One(_t) = &mut em { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:299:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
help: consider removing the mutable borrow
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
LL - &mut Either::One(_t)
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t)
|
2019-12-27 11:53:00 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:306:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:312:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:318:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^^
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
| --
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - &mut Either::One(_t) => (),
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + Either::One(_t) => (),
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:174:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f1(&X(_t): &X) { }
|
|
|
|
| ^^^--^
|
2022-12-08 11:02:54 -06:00
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the borrow
|
|
|
|
|
|
|
|
|
LL - fn f1(&X(_t): &X) { }
|
|
|
|
LL + fn f1(X(_t): &X) { }
|
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 11:02:54 -06:00
|
|
|
--> $DIR/simple.rs:212:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f2(&mut X(_t): &mut X) { }
|
|
|
|
| ^^^^^^^--^
|
2022-12-08 11:02:54 -06:00
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
|
help: consider removing the mutable borrow
|
|
|
|
|
|
|
|
|
LL - fn f2(&mut X(_t): &mut X) { }
|
2022-12-08 23:09:56 -06:00
|
|
|
LL + fn f2(X(_t): &mut X) { }
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:235:11
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | fn f3((&X(_t),): (&X,)) { }
|
|
|
|
| ^^^^--^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | fn f3((&X(ref _t),): (&X,)) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a mutable reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:255:11
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | fn f4((&mut X(_t),): (&mut X,)) { }
|
|
|
|
| ^^^^^^^^--^^^
|
2019-05-05 06:02:32 -05:00
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | fn f4((&mut X(ref _t),): (&mut X,)) { }
|
|
|
|
| +++
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2022-12-08 11:02:54 -06:00
|
|
|
error[E0507]: cannot move out of `a.a` as enum variant `Some` which is behind a shared reference
|
2022-12-08 19:14:56 -06:00
|
|
|
--> $DIR/simple.rs:331:20
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
|
LL | let Some(_s) = a.a else {
|
2022-12-08 11:31:57 -06:00
|
|
|
| -- ^^^
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
| move occurs because `_s` has type `String`, which does not implement the `Copy` trait
|
2022-12-08 19:14:56 -06:00
|
|
|
|
|
|
|
|
help: consider borrowing the pattern binding
|
|
|
|
|
|
|
|
|
LL | let Some(ref _s) = a.a else {
|
|
|
|
| +++
|
2022-12-08 11:02:54 -06:00
|
|
|
|
|
|
|
error: aborting due to 61 previous errors
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|