]> 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 17663a30ca76dee7625265dcd6ff10410c2e5e4f..d4ceae2963b34304a0f613db71f904eeb664169a 100644 (file)
@@ -1,13 +1,9 @@
-// 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
 };