]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-reinit.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-reinit.stderr
index 918452726a06cb1350a7e1cb394b6b068ab4febd..96f3981ac2fe6b0c8eed50b25ebfa8b647df1a84 100644 (file)
@@ -11,12 +11,13 @@ LL |     let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)
 error[E0382]: use of moved value: `x` (Mir)
   --> $DIR/borrowck-reinit.rs:8:16
    |
+LL |     let mut x = Box::new(0);
+   |         ----- move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+...
 LL |     drop(x);
    |          - value moved here
 LL |     let _ = (1,x); //~ ERROR use of moved value: `x` (Ast)
    |                ^ value used here after move
-   |
-   = note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
 
 error: aborting due to 2 previous errors