]> 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 e5c0cf6e24e51fe41bcc8e4134041a9d4f77287b..cbfbc3ccf6a879c2e95cc0c262e79b8877a7042e 100644 (file)
@@ -5,6 +5,7 @@ LL |     let fancy_field = drop_struct.fancy;
    |                       ^^^^^^^^^^^^^^^^^
    |                       |
    |                       cannot move out of here
+   |                       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