]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/liveness/liveness-use-after-move.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / liveness / liveness-use-after-move.stderr
index 3977a3f4136d28b21f4cafd0672c4eb4d42506f8..292ce013dcc7622aaaa2cce9a285009cbe79b702 100644 (file)
@@ -1,10 +1,11 @@
 error[E0382]: borrow of moved value: `x`
   --> $DIR/liveness-use-after-move.rs:6:20
    |
-LL |     let x: Box<_> = box 5;
+LL |     let x: Box<_> = 5.into();
    |         - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
 LL |     let y = x;
    |             - value moved here
+LL | 
 LL |     println!("{}", *x);
    |                    ^^ value borrowed here after move