]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-fn-in-const-a.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-fn-in-const-a.rs
index 33b78cb26d8e34d25491b6300a33b000939d683d..d4ceae2963b34304a0f613db71f904eeb664169a 100644 (file)
@@ -1,23 +1,9 @@
-// Copyright 2014 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.
-
-// revisions: ast mir
-//[mir]compile-flags: -Z borrowck=mir
-
 // Check that we check fns appearing in constant declarations.
 // Issue #22382.
 
 const MOVE: fn(&String) -> String = {
     fn broken(x: &String) -> String {
-        return *x //[ast]~ ERROR cannot move out of borrowed content [E0507]
-                  //[mir]~^ ERROR [E0507]
+        return *x //~ ERROR cannot move
     }
     broken
 };