2018-08-07 03:02:39 -05:00
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| -- ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `s`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:38:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *s;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -- ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `r`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:42:24
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -- ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `r`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:46:27
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:50:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `*`: `r`
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:54:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:57:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *r {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `*`: `r`
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:61:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| -- ^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `sm`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:66:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *sm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -- ^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `rm`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:70:24
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -- ^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| | help: consider removing the `*`: `rm`
|
2018-08-07 03:02:39 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:74:27
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:78:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `*`: `rm`
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:82:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:85:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `*`: `rm`
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:89:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:93:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match *rm {
|
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `*`: `rm`
|
2018-08-07 03:02:39 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:97:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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];
|
|
|
|
| -- ^^^^^
|
2018-08-08 01:44:35 -05:00
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 18:07:19 -05:00
|
|
|
| | help: consider borrowing here: `&vs[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:102:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
2018-08-12 18:07:19 -05:00
|
|
|
LL | let X(_t) = vs[0];
|
2018-08-08 01:34:01 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] { }
|
2018-08-08 01:44:35 -05:00
|
|
|
| -- ^^^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| | help: consider borrowing here: `&vr[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:106:24
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vr[0] { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] { }
|
2018-08-08 01:44:35 -05:00
|
|
|
| -- ^^^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| | help: consider borrowing here: `&vr[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:110:27
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vr[0] { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] {
|
2018-08-08 01:44:35 -05:00
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| help: consider borrowing here: `&vr[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:118:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] {
|
2018-08-08 01:44:35 -05:00
|
|
|
| ^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| help: consider borrowing here: `&vr[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:125:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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];
|
2018-08-08 01:44:35 -05:00
|
|
|
| -- ^^^^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| | help: consider borrowing here: `&vsm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:130:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = vsm[0];
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] { }
|
2018-08-08 01:44:35 -05:00
|
|
|
| -- ^^^^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| | help: consider borrowing here: `&vrm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:134:24
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = vrm[0] { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] { }
|
2018-08-08 01:44:35 -05:00
|
|
|
| -- ^^^^^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| | help: consider borrowing here: `&vrm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
| data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:138:27
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = vrm[0] { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] {
|
2018-08-08 01:44:35 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| help: consider borrowing here: `&vrm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:146:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] {
|
2018-08-08 01:44:35 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| help: consider borrowing here: `&vrm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:153:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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] {
|
2018-08-08 01:44:35 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:55:34 -05:00
|
|
|
| help: consider borrowing here: `&vrm[0]`
|
2018-08-08 01:34:01 -05:00
|
|
|
...
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:161:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| ------ ^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:168:12
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = s;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| ---------------- ^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:172:25
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| ---------------- ^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:176:28
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:180:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:182:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:188:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:190:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:195:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:197:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| ---------- ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:207:16
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = sm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -------------------- ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:211:29
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -------------------- ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:215:32
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:219:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
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) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:228:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:230:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:235:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:237:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:242:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:244:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),);
|
|
|
|
| -- ^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:258:13
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | let (&X(_t),) = (&x.clone(),);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) { }
|
|
|
|
| -- ^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:260:26
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | if let (&Either::One(_t),) = (&e.clone(),) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) { }
|
|
|
|
| -- ^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:262:29
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | while let (&Either::One(_t),) = (&e.clone(),) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) {
|
|
|
|
| ^^^^^^^^^^^^^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-13 17:52:23 -05:00
|
|
|
LL | (&Either::One(_t),)
|
|
|
|
| -- data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:266:23
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | (&Either::One(_t),)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),);
|
|
|
|
| -- ^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:272:17
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | let (&mut X(_t),) = (&mut xm.clone(),);
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) { }
|
|
|
|
| -- ^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:274:30
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | if let (&mut Either::One(_t),) = (&mut em.clone(),) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) { }
|
|
|
|
| -- ^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:276:33
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | while let (&mut Either::One(_t),) = (&mut em.clone(),) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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(),) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
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),) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| ------ ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:288:12
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = &x;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| ---------------- ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:292:25
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = &e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| ---------------- ^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:296:28
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = &e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:300:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:302:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:308:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:310:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:315:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
2019-03-09 06:03:44 -06:00
|
|
|
LL |
|
2018-08-07 03:02:39 -05:00
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ----------------
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:317:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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;
|
|
|
|
| ---------- ^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:323:16
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = &mut xm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -------------------- ^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:327:29
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &mut Either::One(_t) = &mut em { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 { }
|
|
|
|
| -------------------- ^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:331:32
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &mut Either::One(_t) = &mut em { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:337:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:345:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:352:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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 {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
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
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `Either::One(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `X`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:359:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:202:14
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f1(&X(_t): &X) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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
|
|
|
|
| cannot move out of borrowed content
|
2018-08-12 15:27:14 -05:00
|
|
|
| help: consider removing the `&mut`: `X(_t)`
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
2018-08-12 15:14:03 -05:00
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:249:18
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f2(&mut X(_t): &mut X) { }
|
|
|
|
| ^^
|
|
|
|
|
2018-08-13 05:17:53 -05:00
|
|
|
error[E0507]: cannot move out of borrowed content
|
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,)) { }
|
|
|
|
| ^^^^--^^^
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
|
|
|
| cannot move out of borrowed content
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:269:15
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | fn f3((&X(_t),): (&X,)) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
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,)) { }
|
|
|
|
| ^^^^^^^^--^^^
|
|
|
|
| | |
|
|
|
|
| | data moved here
|
|
|
|
| cannot move out of borrowed content
|
|
|
|
|
|
|
|
|
note: move occurs because `_t` has type `Y`, which does not implement the `Copy` trait
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/simple.rs:283:19
|
2018-08-13 17:52:23 -05:00
|
|
|
|
|
|
|
|
LL | fn f4((&mut X(_t),): (&mut X,)) { }
|
|
|
|
| ^^
|
|
|
|
|
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`.
|