]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/no-reuse-move-arc.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / compile-fail / no-reuse-move-arc.rs
index 115be7e148535ee95b5ad2953a3f90fad4899c11..29f62ff6e1b261834001465b7a193a48bb0acf48 100644 (file)
@@ -19,10 +19,10 @@ fn main() {
 
     task::spawn(proc() {
         let v = arc_v.get();
-        assert_eq!(v[3], 4);
+        assert_eq!(*v.get(3), 4);
     });
 
-    assert_eq!((arc_v.get())[2], 3); //~ ERROR use of moved value: `arc_v`
+    assert_eq!(*(arc_v.get()).get(2), 3); //~ ERROR use of moved value: `arc_v`
 
     println!("{:?}", arc_v); //~ ERROR use of moved value: `arc_v`
 }