syntax: unbox closures used in let bindings

This commit is contained in:
Jorge Aparicio
2014-12-30 21:02:53 -05:00
parent 12dd7781d6
commit ab402c0744
8 changed files with 15 additions and 15 deletions

View File

@@ -1660,7 +1660,7 @@ mod test {
assert!((shouldmatch.len() == 0) ||
(varrefs.len() > *shouldmatch.iter().max().unwrap()));
for (idx,varref) in varrefs.iter().enumerate() {
let print_hygiene_debug_info = || {
let print_hygiene_debug_info = |&:| {
// good lord, you can't make a path with 0 segments, can you?
let final_varref_ident = match varref.segments.last() {
Some(pathsegment) => pathsegment.identifier,