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