2018-08-14 13:56:20 -05:00
|
|
|
error[E0507]: cannot move out of captured variable in an `Fn` closure
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:30: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:30: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:34: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:34: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:38: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:38: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:42: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:46: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:49: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:53: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:58: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:58: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:62: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:62: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:66: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:66: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:70: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:74: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:77: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:81: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:97: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:97: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:101: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:101: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:105: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:105: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:109: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:113: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:116: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:120: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:125: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:125: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:129: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:129: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:133: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:133: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:137: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:141: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:144: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:148: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:152: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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-into-closure.rs:156: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`.
|