This website requires JavaScript.
Explore
Help
Sign in
bjoernager
/
rust
Watch
1
Fork
You've already forked rust
0
Code
Activity
12c32e944d
rust
/
src
/
test
/
run-fail
/
expr-fn-fail.rs
8 lines
78 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Teach rustc to use block results as fn return values. Closes #372
2011-05-31 15:24:18 -04:00
Reformat source tree (minus a couple tests that are still grumpy).
2011-06-15 11:19:50 -07:00
// error-pattern:explicit failure
rustc: Teach rustc to use block results as fn return values. Closes #372
2011-05-31 15:24:18 -04:00
fn
f
(
)
->
!
{
fail
}
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
fn
main
(
)
{
f
(
)
;
}
Copy permalink