]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-reinit.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / borrowck / borrowck-reinit.rs
1 fn main() {
2     let mut x = Box::new(0);
3     let _u = x; // error shouldn't note this move
4     x = Box::new(1);
5     drop(x);
6     let _ = (1,x); //~ ERROR use of moved value: `x`
7 }