]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/trivial-bounds/trivial-bounds-leak-copy.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / trivial-bounds / trivial-bounds-leak-copy.stderr
index 68d8129843e663fb7dd92635d877fe8ecf3d034e..e96a24196863c478e088c6b1d6c753ac61659247 100644 (file)
@@ -1,8 +1,8 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `*t` which is behind a shared reference
   --> $DIR/trivial-bounds-leak-copy.rs:9:5
    |
 LL |     *t
-   |     ^^ cannot move out of borrowed content
+   |     ^^ move occurs because `*t` has type `std::string::String`, which does not implement the `Copy` trait
 
 error: aborting due to previous error