This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
12c32e944d
rust
/
src
/
test
/
run-pass
/
do-stack.rs
6 lines
77 B
Rust
Raw
Normal View
History
Unescape
Escape
Make 'do' expressions accept stack closures
2012-06-24 20:01:27 -05:00
fn
f
(
f
:
fn
&
(
int
)
)
{
f
(
10
)
}
fn
main
(
)
{
Convert to new closure syntax
2012-06-30 18:19:07 -05:00
do
f
(
)
|
i
|
{
assert
i
=
=
10
}
Make 'do' expressions accept stack closures
2012-06-24 20:01:27 -05:00
}
Reference in New Issue
Copy Permalink