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
1c1b3a3339
rust
/
src
/
test
/
run-pass
/
do3.rs
6 lines
90 B
Rust
Raw
Normal View
History
Unescape
Escape
Add 'do' expressions
2012-06-18 19:42:09 -05:00
fn
f
(
f
:
fn
@
(
int
)
->
int
)
->
int
{
f
(
10
)
}
fn
main
(
)
{
Convert to new closure syntax
2012-06-30 18:19:07 -05:00
assert
do
f
|
i
|
{
i
}
=
=
10
;
Add 'do' expressions
2012-06-18 19:42:09 -05:00
}
Reference in New Issue
Copy Permalink