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
rust
/
src
/
test
/
pretty
/
do1.rs
8 lines
92 B
Rust
Raw
Normal View
History
Unescape
Escape
syntax: Pretty-print 'do' correctly
2012-06-29 15:37:17 -07:00
// pretty-exact
fn
f
(
f
:
fn
@
(
int
)
)
{
f
(
10
)
}
fn
main
(
)
{
Convert to new closure syntax
2012-06-30 16:19:07 -07:00
do
f
|
i
|
{
assert
i
=
=
10
}
syntax: Pretty-print 'do' correctly
2012-06-29 15:37:17 -07:00
}
Reference in New Issue
Copy Permalink