]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-reinit.rs
Rollup merge of #102488 - compiler-errors:gat-compatibility, r=oli-obk
[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 }