]> git.lizzy.rs Git - rust.git/blob - tests/ui/liveness/liveness-use-after-move.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / liveness / liveness-use-after-move.rs
1 fn main() {
2
3     let x: Box<_> = 5.into();
4     let y = x;
5
6     println!("{}", *x); //~ ERROR borrow of moved value: `x`
7     y.clone();
8 }