]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/cleanup-rvalue-scopes.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / cleanup-rvalue-scopes.rs
index 6d1c3aab66257bfd1c0c1dc56bed484e12b9486b..2911df412d817bf508d028cdab87db762966ad0e 100644 (file)
@@ -15,6 +15,7 @@
 #[feature(macro_rules)];
 
 use std::ops::Drop;
+use std::vec_ng::Vec;
 
 static mut FLAGS: u64 = 0;
 
@@ -116,7 +117,6 @@ 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!(_, &((&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: