]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-issue-2657-2.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-issue-2657-2.stderr
index 4ef36df52df57371d03fcbd4459ee778ad81149c..908b2c0ff5ee8ef6e4900998f4d0b2211be0ecc0 100644 (file)
@@ -1,10 +1,10 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `*y` which is behind a shared reference
   --> $DIR/borrowck-issue-2657-2.rs:7:18
    |
 LL |         let _b = *y;
    |                  ^^
    |                  |
-   |                  cannot move out of borrowed content
+   |                  move occurs because `*y` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
    |                  help: consider removing the `*`: `y`
 
 error: aborting due to previous error