]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-reinit.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[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 }