2013-01-23 18:15:06 -08:00
|
|
|
fn main() {
|
|
|
|
let mut a = ~3;
|
2013-03-15 15:24:24 -04:00
|
|
|
let mut b = &mut a;
|
2013-01-23 18:15:06 -08:00
|
|
|
let _c = &mut *b;
|
2013-03-15 15:24:24 -04:00
|
|
|
let mut d = /*move*/ a; //~ ERROR cannot move out
|
2013-01-23 18:15:06 -08:00
|
|
|
*d += 1;
|
|
|
|
}
|