]> 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 faa56cc7f2a8209ff73eaba9f8370bc8dfdfeeff..d4ceae2963b34304a0f613db71f904eeb664169a 100644 (file)
@@ -3,7 +3,7 @@
 
 const MOVE: fn(&String) -> String = {
     fn broken(x: &String) -> String {
-        return *x //~ ERROR cannot move out of borrowed content [E0507]
+        return *x //~ ERROR cannot move
     }
     broken
 };