]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-40402-ref-hints / issue-40402-1.rs
index 786c37e5969d8fcd09be810f2d3685440c2b5c7d..254956ae306925fc56fcf1d9928548b0340681ff 100644 (file)
@@ -6,5 +6,5 @@ struct Foo {
 fn main() {
     let mut f = Foo { v: Vec::new() };
     f.v.push("hello".to_string());
-    let e = f.v[0]; //~ ERROR cannot move out of borrowed content
+    let e = f.v[0]; //~ ERROR cannot move out of index
 }