about summary refs log tree commit diff
path: root/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs')
-rw-r--r--src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs b/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs
index 62f8b81385a..eadbe44a8e9 100644
--- a/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs
+++ b/src/test/ui/cleanup-rvalue-temp-during-incomplete-alloc.rs
@@ -21,8 +21,6 @@
 
 // ignore-emscripten no threads support
 
-#![feature(box_syntax)]
-
 use std::thread;
 
 enum Conzabble {
@@ -40,7 +38,7 @@ fn get_bar(x: usize) -> Vec<usize> { vec![x * 2] }
 pub fn fails() {
     let x = 2;
     let mut y: Vec<Box<_>> = Vec::new();
-    y.push(box Conzabble::Bickwick(do_it(&get_bar(x))));
+    y.push(Box::new(Conzabble::Bickwick(do_it(&get_bar(x)))));
 }
 
 pub fn main() {