2018-08-07 03:02:39 -05:00
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:50: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:50:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *s;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:54: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:54:24
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:58: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:58:27
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:62: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:66:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:69: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:73:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:78: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:78:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = *sm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:82: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:82:24
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = *rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:86: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:86:27
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = *rm { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:90: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:94:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:97: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:101:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:105: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:109:21
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:114: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:114: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:118: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:118: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:122: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:122: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:126: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:130:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:133: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:137:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:142: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:142:11
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = vsm[0];
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:146: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:146: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:150: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:150: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:154: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:158:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:161: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:165:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:169: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:173:21
|
2018-08-08 01:34:01 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:180: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:180:12
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = s;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:184: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:184:25
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:188: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:188:28
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = r { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:192:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:194:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:200:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:202:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:207:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match r {
|
|
|
|
| ^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:209:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:219: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:219:16
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = sm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:223: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:223: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:227: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:227: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:231:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| -- data moved here
|
|
|
|
...
|
|
|
|
LL | &mut Either::Two(_t) => (),
|
|
|
|
| -- ... and here
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:233: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:240:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:242:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:247:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:249:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:254:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match rm {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:256:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:268: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:268:12
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &X(_t) = &x;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:272: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:272:25
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | if let &Either::One(_t) = &e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:276: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:276:28
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | while let &Either::One(_t) = &e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:280:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:282:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:288:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:290:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:295:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &e {
|
|
|
|
| ^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:297:22
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:303: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:303:16
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | let &mut X(_t) = &mut xm;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:307: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:307: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:311: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:311: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:315:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:317:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:323:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:325:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:330:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:332:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:337:11
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | match &mut em {
|
|
|
|
| ^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:339:26
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | &mut Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:347:27
|
|
|
|
|
|
|
|
|
LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone());
|
|
|
|
| --------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(X(_t), X(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:347:13
|
|
|
|
|
|
|
|
|
LL | let &(X(_t), X(_u)) = &(x.clone(), x.clone());
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:351:50
|
|
|
|
|
|
|
|
|
LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
|
|
|
| ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:351:26
|
|
|
|
|
|
|
|
|
LL | if let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:355:53
|
|
|
|
|
|
|
|
|
LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
|
|
|
| ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:355:29
|
|
|
|
|
|
|
|
|
LL | while let &(Either::One(_t), Either::Two(_u)) = &(e.clone(), e.clone()) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:359:11
|
|
|
|
|
|
|
|
|
LL | match &(e.clone(), e.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| -- -- ... and here
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
...
|
|
|
|
LL | &(Either::Two(_t), Either::One(_u)) => (),
|
|
|
|
| -- ... and here -- ... and here
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:361:23
|
|
|
|
|
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
|
|
|
...
|
2018-08-13 05:17:53 -05:00
|
|
|
LL | &(Either::Two(_t), Either::One(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
help: consider removing the `&`
|
|
|
|
|
|
|
|
|
LL | (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: consider removing the `&`
|
|
|
|
|
|
|
|
|
LL | (Either::Two(_t), Either::One(_u)) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:369:11
|
|
|
|
|
|
|
|
|
LL | match &(e.clone(), e.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u))
|
|
|
|
| -----------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:371:23
|
|
|
|
|
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u))
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:378:11
|
|
|
|
|
|
|
|
|
LL | match &(e.clone(), e.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| -----------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:380:23
|
|
|
|
|
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:386:11
|
|
|
|
|
|
|
|
|
LL | match &(e.clone(), e.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| -----------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:388:23
|
|
|
|
|
|
|
|
|
LL | &(Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:399:31
|
|
|
|
|
|
|
|
|
LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone());
|
|
|
|
| ------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(X(_t), X(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:399:17
|
|
|
|
|
|
|
|
|
LL | let &mut (X(_t), X(_u)) = &mut (xm.clone(), xm.clone());
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:403:54
|
|
|
|
|
|
|
|
|
LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
|
|
|
| --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:403:30
|
|
|
|
|
|
|
|
|
LL | if let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:407:57
|
|
|
|
|
|
|
|
|
LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
|
|
|
| --------------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:407:33
|
|
|
|
|
|
|
|
|
LL | while let &mut (Either::One(_t), Either::Two(_u)) = &mut (em.clone(), em.clone()) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:411:11
|
|
|
|
|
|
|
|
|
LL | match &mut (em.clone(), em.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| -- -- ... and here
|
|
|
|
| |
|
|
|
|
| data moved here
|
|
|
|
...
|
|
|
|
LL | &mut (Either::Two(_t), Either::One(_u)) => (),
|
|
|
|
| -- ... and here -- ... and here
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:413:27
|
|
|
|
|
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
|
|
|
...
|
2018-08-13 05:17:53 -05:00
|
|
|
LL | &mut (Either::Two(_t), Either::One(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
help: consider removing the `&mut`
|
|
|
|
|
|
|
|
|
LL | (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
help: consider removing the `&mut`
|
|
|
|
|
|
|
|
|
LL | (Either::Two(_t), Either::One(_u)) => (),
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:421:11
|
|
|
|
|
|
|
|
|
LL | match &mut (em.clone(), em.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u))
|
|
|
|
| ---------------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:423:27
|
|
|
|
|
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u))
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:430:11
|
|
|
|
|
|
|
|
|
LL | match &mut (em.clone(), em.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| ---------------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:432:27
|
|
|
|
|
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:438:11
|
|
|
|
|
|
|
|
|
LL | match &mut (em.clone(), em.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| ---------------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:440:27
|
|
|
|
|
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:446:11
|
|
|
|
|
|
|
|
|
LL | match &mut (em.clone(), em.clone()) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
|
|
|
|
LL | //~^ ERROR cannot move
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
|
|
|
| ---------------------------------------
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| help: consider removing the `&mut`: `(Either::One(_t), Either::Two(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:448:27
|
|
|
|
|
|
|
|
|
LL | &mut (Either::One(_t), Either::Two(_u)) => (),
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:214: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:214:14
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
|
LL | fn f1(&X(_t): &X) { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:261: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
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:261: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
|
|
|
|
--> $DIR/dont-suggest-ref.rs:394:11
|
|
|
|
|
|
|
|
|
LL | fn f3(&(X(_t), X(_u)): &(X, X)) { }
|
|
|
|
| ^^^^--^^^^^--^^
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| cannot move out of borrowed content
|
|
|
|
| help: consider removing the `&`: `(X(_t), X(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:394:15
|
|
|
|
|
|
|
|
|
LL | fn f3(&(X(_t), X(_u)): &(X, X)) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error[E0507]: cannot move out of borrowed content
|
|
|
|
--> $DIR/dont-suggest-ref.rs:454:11
|
|
|
|
|
|
|
|
|
LL | fn f4(&mut (X(_t), X(_u)): &mut (X, X)) { }
|
|
|
|
| ^^^^^^^^--^^^^^--^^
|
|
|
|
| | | |
|
|
|
|
| | | ... and here
|
|
|
|
| | data moved here
|
|
|
|
| cannot move out of borrowed content
|
|
|
|
| help: consider removing the `&mut`: `(X(_t), X(_u))`
|
|
|
|
|
|
2018-08-13 16:51:27 -05:00
|
|
|
note: move occurs because these variables have types that don't implement the `Copy` trait
|
2018-08-13 05:17:53 -05:00
|
|
|
--> $DIR/dont-suggest-ref.rs:454:19
|
|
|
|
|
|
|
|
|
LL | fn f4(&mut (X(_t), X(_u)): &mut (X, X)) { }
|
2018-08-13 16:51:27 -05:00
|
|
|
| ^^ ^^
|
2018-08-13 05:17:53 -05:00
|
|
|
|
|
|
|
error: aborting due to 67 previous errors
|
2018-08-07 03:02:39 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|