rust/src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

13 lines
466 B
Plaintext

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
|
LL | let y = vec![format!("World")];
| - captured outer variable
LL | call(|| {
LL | y.into_iter();
| ^ cannot move out of captured outer variable in an `Fn` closure
error: aborting due to previous error
For more information about this error, try `rustc --explain E0507`.