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