]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-reinit.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / 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 }