]> git.lizzy.rs Git - rust.git/blob - src/test/ui/liveness/liveness-use-after-move.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / liveness / liveness-use-after-move.rs
1 #![feature(box_syntax)]
2
3 fn main() {
4     let x: Box<_> = box 5;
5     let y = x;
6     println!("{}", *x); //~ ERROR borrow of moved value: `x`
7     y.clone();
8 }