]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-reinit.rs
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[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 }