]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-40402-ref-hints/issue-40402-2.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-40402-ref-hints / issue-40402-2.rs
index 480a4df48a3e5d39e59ebea7926d86a2064a55ff..1fb6e31e964ee1ab068969dc3e679bc57f3c0ed4 100644 (file)
@@ -2,5 +2,5 @@
 // are nested within a pattern
 fn main() {
     let x = vec![(String::new(), String::new())];
-    let (a, b) = x[0]; //~ ERROR cannot move out of borrowed content
+    let (a, b) = x[0]; //~ ERROR cannot move out of index
 }