summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-7013.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-7013.rs')
-rw-r--r--src/test/ui/issues/issue-7013.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/issues/issue-7013.rs b/src/test/ui/issues/issue-7013.rs
index c1f400b33..1fb01303c 100644
--- a/src/test/ui/issues/issue-7013.rs
+++ b/src/test/ui/issues/issue-7013.rs
@@ -1,5 +1,3 @@
-#![feature(box_syntax)]
-
use std::cell::RefCell;
use std::rc::Rc;
@@ -23,6 +21,6 @@ struct A {
}
fn main() {
- let a = A {v: box B{v: None} as Box<dyn Foo + Send>};
+ let a = A {v: Box::new(B{v: None}) as Box<dyn Foo + Send>};
//~^ ERROR `Rc<RefCell<A>>` cannot be sent between threads safely
}