]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-fn-in-const-a.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-fn-in-const-a.stderr
index fff28359c146e4f56d622cc590531217a2e4b090..4c9cfa60ad46370f318d8c84d40936caac3519c9 100644 (file)
@@ -1,8 +1,8 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `*x` which is behind a shared reference
   --> $DIR/borrowck-fn-in-const-a.rs:6:16
    |
 LL |         return *x
-   |                ^^ cannot move out of borrowed content
+   |                ^^ move occurs because `*x` has type `std::string::String`, which does not implement the `Copy` trait
 
 error: aborting due to previous error