2011-12-19 14:50:31 -06:00
|
|
|
fn main() {
|
|
|
|
let x = 5;
|
2012-05-04 14:33:04 -05:00
|
|
|
let _y = fn~(move x) -> int {
|
2012-07-09 12:56:47 -05:00
|
|
|
let _z = fn~(move x) -> int { x }; //~ ERROR moving out of captured outer variable in a heap closure
|
2011-12-19 14:50:31 -06:00
|
|
|
22
|
|
|
|
};
|
|
|
|
}
|