2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `s.0` 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;
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^ help: consider borrowing here: `&*s`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:42:30
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *r { }
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^ help: consider borrowing here: `&*r`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:46:33
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *r { }
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^ help: consider borrowing here: `&*r`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:50:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
2019-05-29 17:58:54 -05:00
|
|
|
| ^^ help: consider borrowing here: `&*r`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:57:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
2019-05-29 17:58:54 -05:00
|
|
|
| ^^ help: consider borrowing here: `&*r`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `sm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:66:17
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *sm;
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^^ help: consider borrowing here: `&*sm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:70:30
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *rm { }
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^^ help: consider borrowing here: `&*rm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:74:33
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *rm { }
|
2019-05-29 17:58:54 -05:00
|
|
|
| -- ^^^ help: consider borrowing here: `&*rm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:78:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2019-05-29 17:58:54 -05:00
|
|
|
| ^^^ help: consider borrowing here: `&*rm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:85:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2019-05-29 17:58:54 -05:00
|
|
|
| ^^^ help: consider borrowing here: `&*rm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:93:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
2019-05-29 17:58:54 -05:00
|
|
|
| ^^^ help: consider borrowing here: `&*rm`
|
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
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<X>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:102:17
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
2018-08-12 18:07:19 -05:00
|
|
|
LL | let X(_t) = vs[0];
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^ help: consider borrowing here: `&vs[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:106:30
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vr[0] { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^ help: consider borrowing here: `&vr[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:110:33
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vr[0] { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^ help: consider borrowing here: `&vr[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:114:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vr[0] {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^ help: consider borrowing here: `&vr[0]`
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:121:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vr[0] {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^ help: consider borrowing here: `&vr[0]`
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<X>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:130:17
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = vsm[0];
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^ help: consider borrowing here: `&vsm[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:134:30
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vrm[0] { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^ help: consider borrowing here: `&vrm[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:138:33
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vrm[0] { }
|
2019-05-05 06:02:32 -05:00
|
|
|
| -- ^^^^^^ help: consider borrowing here: `&vrm[0]`
|
|
|
|
| |
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:142:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^ help: consider borrowing here: `&vrm[0]`
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:149:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^ help: consider borrowing here: `&vrm[0]`
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of index of `std::vec::Vec<Either>`
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:157:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | match vrm[0] {
|
2019-05-05 06:02:32 -05:00
|
|
|
| ^^^^^^ help: consider borrowing here: `&vrm[0]`
|
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
|
2018-08-08 01:34:01 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `s.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:168:18
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = s;
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:172:31
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = r { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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 `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:176:34
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = r { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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 `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:180: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)
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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 `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:188: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) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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 `r.0` which is behind a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:195: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) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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 `sm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:207:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = sm;
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:211:35
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = rm { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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 `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:215:38
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = rm { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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 `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:219: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
|
|
|
|
...
|
|
|
|
LL | &mut Either::Two(_t) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| -- ...and here
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:221:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
2018-08-13 16:51:27 -05:00
|
|
|
...
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &mut Either::Two(_t) => (),
|
|
|
|
| ^^
|
2018-08-12 15:27:14 -05:00
|
|
|
help: consider removing the `&mut`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2018-08-12 15:27:14 -05:00
|
|
|
help: consider removing the `&mut`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::Two(_t) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:228: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
|
2019-05-05 06:02:32 -05:00
|
|
|
| | move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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 `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:235: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
|
2019-05-05 06:02:32 -05:00
|
|
|
| | move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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 `rm.0` which is behind a mutable reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:242: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
|
2019-05-05 06:02:32 -05:00
|
|
|
| | move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:258: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:260: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:262: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:264: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:272: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:274: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:276: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:278: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
|
|
|
|
LL | (&mut Either::Two(_t),) => (),
|
2018-08-13 18:45:40 -05:00
|
|
|
| -- ...and here
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:280:27
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | (&mut Either::One(_t),) => (),
|
|
|
|
| ^^
|
|
|
|
LL | (&mut Either::Two(_t),) => (),
|
|
|
|
| ^^
|
|
|
|
|
2019-05-05 06:02:32 -05:00
|
|
|
error[E0507]: cannot move out of a shared reference
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:288:18
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = &x;
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:292:31
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = &e { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:296:34
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = &e { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:300: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)
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:308: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) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:315: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) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:323:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = &mut xm;
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:327:35
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = &mut em { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:331:38
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = &mut em { }
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:335: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)
|
|
|
|
| --------------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:343: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) => (),
|
|
|
|
| --------------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:350: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) => (),
|
|
|
|
| --------------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:357: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) => (),
|
|
|
|
| --------------------
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:202:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f1(&X(_t): &X) { }
|
|
|
|
| ^^^--^
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:249:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f2(&mut X(_t): &mut X) { }
|
|
|
|
| ^^^^^^^--^
|
|
|
|
| | |
|
|
|
|
| | 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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:269: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
|
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
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:283: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
|
2018-08-13 17:52:23 -05:00
|
|
|
|
2018-08-16 00:36:19 -05:00
|
|
|
error: aborting due to 60 previous errors
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|