| 1 |
// { dg-additional-options "-frust-compile-until=ast" } |
| 2 |
// |
| 3 |
// Do not reformat this test! The default rust format settings will insert a |
| 4 |
// space between closure parameter lists. |
| 5 |
fn main() { |
| 6 |
let f = |_||x, y| x+y; |
| 7 |
assert_eq!(f(())(1, 2), 3); |
| 8 |
} |