]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/moves/moves-based-on-type-block-bad.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / moves / moves-based-on-type-block-bad.rs
index 99928caa926a4b2cc845ceedf694e6a3adadfe5f..eca33167f454ae6ea9ee7777c1c45a6815a86a0f 100644 (file)
@@ -1,7 +1,5 @@
-// ignore-tidy-linelength
-
 #![feature(box_patterns)]
-#![feature(box_syntax)]
+
 
 struct S {
     x: Box<E>
@@ -18,11 +16,10 @@ fn f<G>(s: &S, g: G) where G: FnOnce(&S) {
 }
 
 fn main() {
-    let s = S { x: box E::Bar(box 42) };
+    let s = S { x: Box::new(E::Bar(Box::new(42))) };
     loop {
         f(&s, |hellothere| {
             match hellothere.x { //~ ERROR cannot move out
-                                 //~| cannot move out of borrowed content
                 box E::Foo(_) => {}
                 box E::Bar(x) => println!("{}", x.to_string()),
                 box E::Baz => {}