2011-12-19 12:50:31 -08:00
|
|
|
fn main() {
|
|
|
|
let x = 5;
|
2012-05-04 12:33:04 -07:00
|
|
|
let _y = fn~(move x) -> int {
|
2012-06-30 12:23:59 +01:00
|
|
|
let _z = fn~(move x) -> int { x }; //~ ERROR moving out of variable declared in an outer block
|
2011-12-19 12:50:31 -08:00
|
|
|
22
|
|
|
|
};
|
|
|
|
}
|