index
:
rust
this commit
auto
automation/bors/try
automation/bors/try-merge
beta
cargo_update
lcnr/rustc-dev-guide
master
perf-tmp
stable
try
try-perf
https://github.com/rust-lang/rust
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
tests
/
ui
/
functions-closures
/
closure-returning-closure.rs
blob: c4ec792c1022d6db6beb40e60d4f2d3266b7874a (
plain
)
1
2
3
4
5
//@ run-pass
fn
main
()
{
let
f
=
|
_
||
x
,
y
|
x
+
y
;
assert_eq!
(
f
(())(
1
,
2
),
3
);
}