Convert to new closure syntax
This commit is contained in:
parent
13a8f54538
commit
d1fc2b5995
394 changed files with 3253 additions and 3278 deletions
|
@ -12,13 +12,13 @@ fn test_ret() { let x: @int = ret; }
|
|||
|
||||
fn test_fail() {
|
||||
fn f() { let x: @int = fail; }
|
||||
task::try({|| f() });
|
||||
task::try(|| f() );
|
||||
}
|
||||
|
||||
fn test_fail_indirect() {
|
||||
fn f() -> ! { fail; }
|
||||
fn g() { let x: @int = f(); }
|
||||
task::try({|| g() });
|
||||
task::try(|| g() );
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue