rust/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr

13 lines
466 B
Plaintext
Raw Normal View History

2017-04-25 03:25:30 +00:00
error[E0507]: cannot move out of captured outer variable in an `Fn` closure
--> $DIR/unboxed-closures-move-upvar-from-non-once-ref-closure.rs:21:9
|
2018-02-23 00:42:32 +00:00
LL | let y = vec![format!("World")];
2017-04-25 03:25:30 +00:00
| - captured outer variable
2018-02-24 23:01:39 +00:00
LL | call(|| {
2018-02-23 00:42:32 +00:00
LL | y.into_iter();
2017-04-25 03:25:30 +00:00
| ^ cannot move out of captured outer variable in an `Fn` closure
error: aborting due to previous error
2017-04-25 03:25:30 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0507`.