]> git.lizzy.rs Git - rust.git/blob - tests/ui/liveness/liveness-use-after-move.rs
Auto merge of #100178 - mati865:upgrade-mingw-w64-on-CI, r=nikic
[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 }