]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / unboxed-closures-move-upvar-from-non-once-ref-closure.rs
index cd9f1636c3f4dbe9a065d7f36f8d6266014df6d3..d54b09c5da95ac95f8ed2d2c5e0ab32bf122ecef 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // Test that a by-ref `FnMut` closure gets an error when it tries to
 // consume a value.
 
@@ -19,6 +9,6 @@ fn main() {
     let y = vec![format!("World")];
     call(|| {
         y.into_iter();
-        //~^ ERROR cannot move out of captured outer variable in an `Fn` closure
+        //~^ ERROR cannot move out of `y`, a captured variable in an `Fn` closure
     });
 }