]> git.lizzy.rs Git - rust.git/blob - src/test/ui/functions-closures/closure-returning-closure.rs
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / test / ui / functions-closures / closure-returning-closure.rs
1 // run-pass
2 fn main() {
3     let f = |_||x, y| x+y;
4     assert_eq!(f(())(1, 2), 3);
5 }