]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/moves/move-out-of-array-1.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / moves / move-out-of-array-1.stderr
index fb191b89bda41bc4c71bde685f12192870048793..0af083e5b5233d811d6dfb4fb41825e3c69ff404 100644 (file)
@@ -2,7 +2,10 @@ error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
   --> $DIR/move-out-of-array-1.rs:17:5
    |
 LL |     a[i]
-   |     ^^^^ cannot move out of here
+   |     ^^^^
+   |     |
+   |     cannot move out of here
+   |     move occurs because `a[_]` has type `D`, which does not implement the `Copy` trait
 
 error: aborting due to previous error