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
3eef8d1419
rust
/
src
/
test
/
run-pass
/
if-ret.rs
4 lines
48 B
Rust
Raw
Normal View
History
Unescape
Escape
Fix damage done by the pretty-printer
2011-07-27 07:48:34 -05:00
fn
foo
(
)
{
if
(
ret
)
{
}
}
Parse nullary ret correctly ret is similar to fail: if not followed by an expression, it should be parsed as a ret without an argument. The old version would fail if ret was followed by a close paren (for example). Fixed it. Closes #676.
2011-07-13 17:00:59 -05:00
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 17:16:48 -05:00
fn
main
(
)
{
foo
(
)
;
}
Reference in New Issue
Copy Permalink