]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/error-codes/E0508.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / error-codes / E0508.stderr
index 983062e450ea7573aefdc385ea598b1bcd508363..5e7b56dcd372a7d257768702ed40eec12f72f88f 100644 (file)
@@ -5,6 +5,7 @@ LL |     let _value = array[0];
    |                  ^^^^^^^^
    |                  |
    |                  cannot move out of here
+   |                  move occurs because `array[_]` has type `NonCopy`, which does not implement the `Copy` trait
    |                  help: consider borrowing here: `&array[0]`
 
 error: aborting due to previous error