]> git.lizzy.rs Git - rust.git/blob - src/test/ui/liveness/liveness-use-after-move.stderr
Rollup merge of #75377 - canova:map_debug_impl, r=dtolnay
[rust.git] / src / test / ui / liveness / liveness-use-after-move.stderr
1 error[E0382]: borrow of moved value: `x`
2   --> $DIR/liveness-use-after-move.rs:6:20
3    |
4 LL |     let x: Box<_> = box 5;
5    |         - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
6 LL |     let y = x;
7    |             - value moved here
8 LL |     println!("{}", *x);
9    |                    ^^ value borrowed here after move
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.