]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0509.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / error-codes / E0509.stderr
index 25b6d8a47d28c68d5121f74a7822be20f5f773d1..cbfbc3ccf6a879c2e95cc0c262e79b8877a7042e 100644 (file)
@@ -5,7 +5,8 @@ LL |     let fancy_field = drop_struct.fancy;
    |                       ^^^^^^^^^^^^^^^^^
    |                       |
    |                       cannot move out of here
-   |                       help: consider using a reference instead: `&drop_struct.fancy`
+   |                       move occurs because `drop_struct.fancy` has type `FancyNum`, which does not implement the `Copy` trait
+   |                       help: consider borrowing here: `&drop_struct.fancy`
 
 error: aborting due to previous error