1
Fork 0

Convert to new closure syntax

This commit is contained in:
Brian Anderson 2012-06-30 16:19:07 -07:00
parent 13a8f54538
commit d1fc2b5995
394 changed files with 3253 additions and 3278 deletions

View file

@ -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() {