2012-05-19 07:52:01 -05:00
|
|
|
fn main() {
|
|
|
|
let x = @5;
|
2012-10-23 13:11:23 -05:00
|
|
|
let y = move x; //~ NOTE move of variable occurred here
|
2012-06-30 06:23:59 -05:00
|
|
|
log(debug, *x); //~ ERROR use of moved variable: `x`
|
2012-05-23 22:53:49 -05:00
|
|
|
copy y;
|
2012-05-19 07:52:01 -05:00
|
|
|
}
|