2018-08-14 13:56:20 -05:00
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:28:21
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let x = X(Y);
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | let X(_t) = x;
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&x`
|
|
|
|
| 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/move-into-closure.rs:28:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = x;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:32:34
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | if let Either::One(_t) = e { }
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&e`
|
|
|
|
| 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/move-into-closure.rs:32:28
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:36:37
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | while let Either::One(_t) = e { }
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&e`
|
|
|
|
| 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/move-into-closure.rs:36:31
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:40:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match e {
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `Fn` closure
|
|
|
|
| help: consider borrowing here: `&e`
|
|
|
|
...
|
|
|
|
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/move-into-closure.rs:44:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:47:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match e {
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `Fn` closure
|
|
|
|
| help: consider borrowing here: `&e`
|
|
|
|
...
|
|
|
|
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/move-into-closure.rs:51:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:56:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let x = X(Y);
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | let X(mut _t) = x;
|
|
|
|
| ------ ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&x`
|
|
|
|
| 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/move-into-closure.rs:56:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | let X(mut _t) = x;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:60:38
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | if let Either::One(mut _t) = em { }
|
|
|
|
| ------ ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&em`
|
|
|
|
| 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/move-into-closure.rs:60:28
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(mut _t) = em { }
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:64:41
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | while let Either::One(mut _t) = em { }
|
|
|
|
| ------ ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `Fn` closure
|
|
|
|
| | help: consider borrowing here: `&em`
|
|
|
|
| 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/move-into-closure.rs:64:31
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(mut _t) = em { }
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:68:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match em {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `Fn` closure
|
|
|
|
| help: consider borrowing here: `&em`
|
|
|
|
...
|
|
|
|
LL | Either::One(mut _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/move-into-closure.rs:72:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(mut _t)
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:75:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match em {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `Fn` closure
|
|
|
|
| help: consider borrowing here: `&em`
|
|
|
|
...
|
|
|
|
LL | Either::One(mut _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/move-into-closure.rs:79:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(mut _t) => (),
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:95:21
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let x = X(Y);
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | let X(_t) = x;
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&x`
|
|
|
|
| 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/move-into-closure.rs:95:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | let X(_t) = x;
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:99:34
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | if let Either::One(_t) = e { }
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&e`
|
|
|
|
| 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/move-into-closure.rs:99:28
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(_t) = e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:103:37
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | while let Either::One(_t) = e { }
|
|
|
|
| -- ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&e`
|
|
|
|
| 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/move-into-closure.rs:103:31
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(_t) = e { }
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:107:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match e {
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| help: consider borrowing here: `&e`
|
|
|
|
...
|
|
|
|
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/move-into-closure.rs:111:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t)
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:114:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let e = Either::One(X(Y));
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match e {
|
|
|
|
| ^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| help: consider borrowing here: `&e`
|
|
|
|
...
|
|
|
|
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/move-into-closure.rs:118:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(_t) => (),
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:123:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let x = X(Y);
|
|
|
|
| - captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | let X(mut _t) = x;
|
|
|
|
| ------ ^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&x`
|
|
|
|
| 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/move-into-closure.rs:123:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | let X(mut _t) = x;
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:127:38
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | if let Either::One(mut _t) = em { }
|
|
|
|
| ------ ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&em`
|
|
|
|
| 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/move-into-closure.rs:127:28
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | if let Either::One(mut _t) = em { }
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:131:41
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | while let Either::One(mut _t) = em { }
|
|
|
|
| ------ ^^
|
|
|
|
| | |
|
|
|
|
| | cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| | help: consider borrowing here: `&em`
|
|
|
|
| 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/move-into-closure.rs:131:31
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | while let Either::One(mut _t) = em { }
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:135:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match em {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| help: consider borrowing here: `&em`
|
|
|
|
...
|
|
|
|
LL | Either::One(mut _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/move-into-closure.rs:139:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(mut _t)
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:142:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match em {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| help: consider borrowing here: `&em`
|
|
|
|
...
|
|
|
|
LL | Either::One(mut _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/move-into-closure.rs:146:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(mut _t) => (),
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error[E0507]: cannot move out of captured variable in an `FnMut` closure
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/move-into-closure.rs:150:15
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
2018-08-15 17:25:53 -05:00
|
|
|
LL | let mut em = Either::One(X(Y));
|
|
|
|
| ------ captured outer variable
|
|
|
|
...
|
2018-08-14 13:56:20 -05:00
|
|
|
LL | match em {
|
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| cannot move out of captured variable in an `FnMut` closure
|
|
|
|
| help: consider borrowing here: `&em`
|
|
|
|
...
|
|
|
|
LL | Either::One(mut _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/move-into-closure.rs:154:25
|
2018-08-14 13:56:20 -05:00
|
|
|
|
|
|
|
|
LL | Either::One(mut _t) => (),
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 21 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0507`.
|