rust/tests/ui/functions-closures/closure-returning-closure.rs
2023-01-11 09:32:08 +00:00

6 lines
85 B
Rust

// run-pass
fn main() {
let f = |_||x, y| x+y;
assert_eq!(f(())(1, 2), 3);
}