Rollup merge of #32973 - kindlychung:patch-1, r=steveklabnik

remove "#" symbols to make the code compile
This commit is contained in:
Manish Goregaokar 2016-04-16 01:16:45 +05:30
commit eba80558d7
No known key found for this signature in database
GPG Key ID: 3BBF4D3E2EF79F98

View File

@ -492,12 +492,12 @@ fn factory() -> Box<Fn(i32) -> i32> {
Box::new(move |x| x + num)
}
# fn main() {
fn main() {
let f = factory();
let answer = f(1);
assert_eq!(6, answer);
# }
}
```
By making the inner closure a `move Fn`, we create a new stack frame for our