]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/cleanup-rvalue-scopes.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / run-pass / cleanup-rvalue-scopes.rs
index 7ed59ec74b4d97d49628eaca13dc15d7194fd608..6d1c3aab66257bfd1c0c1dc56bed484e12b9486b 100644 (file)
@@ -116,7 +116,7 @@ pub fn main() {
     end_of_block!(_, { { check_flags(0); &AddFlags(1) } });
     end_of_block!(_, &((Box { f: AddFlags(1) }).f));
     end_of_block!(_, &(([AddFlags(1)])[0]));
-    end_of_block!(_, &((&~[AddFlags(1)])[0]));
+    end_of_block!(_, &((&vec!(AddFlags(1)))[0]));
 
     // LHS does not create a ref binding, so temporary lives as long
     // as statement, and we do not move the AddFlags out: