This website requires JavaScript.
Explore
Help
Sign In
dnrops
/
rust
mirror of
https://github.com/rust-lang/rust.git
Watch
1
Star
0
Fork
You've already forked rust
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
rust
/
tests
/
ui
/
functions-closures
/
closure-returning-closure.rs
6 lines
86 B
Rust
Raw
Permalink
Blame
History
//@ run-pass
fn
main
(
)
{
let
f
=
|
_
|
|
x
,
y
|
x
+
y
;
assert_eq!
(
f
(
(
)
)
(
1
,
2
)
,
3
)
;
}
Reference in New Issue
View Git Blame
Copy Permalink