]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-overloaded-index-move-from-vec.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-overloaded-index-move-from-vec.rs
index b3060824f87ab35e4b92146fbf6aceeb3069c930..ddc210f9aa2332dd2321ccb93988ab6775486249 100644 (file)
@@ -18,5 +18,5 @@ fn main() {
     let v = MyVec::<Box<_>> { data: vec![box 1, box 2, box 3] };
     let good = &v[0]; // Shouldn't fail here
     let bad = v[0];
-    //~^ ERROR cannot move out of borrowed content
+    //~^ ERROR cannot move out of index of `MyVec<std::boxed::Box<i32>>`
 }