@@ -271,7 +271,7 @@ impl task_builder for task_builder {
271271 * # Failure
272272 * Fails if a future_result was already set for this task.
273273 */
274- fn future_result( blk : fn ( - future:: future < task_result > ) ) -> task_builder {
274+ fn future_result( blk : fn ( + future:: future < task_result > ) ) -> task_builder {
275275 // FIXME (#1087, #1857): Once linked failure and notification are
276276 // handled in the library, I can imagine implementing this by just
277277 // registering an arbitrary number of task::on_exit handlers and
@@ -394,7 +394,7 @@ impl task_builder for task_builder {
394394 let ch = comm::chan(po);
395395 let mut result = none;
396396
397- do self.future_result(|- r| { result = some(r); }).spawn {
397+ do self.future_result(|+ r| { result = some(r); }).spawn {
398398 comm::send(ch, f());
399399 }
400400 match future::get(option::unwrap(result)) {
@@ -1684,19 +1684,19 @@ fn test_add_wrapper() {
16841684#[ ignore( cfg( windows) ) ]
16851685fn test_future_result( ) {
16861686 let mut result = none;
1687- do task( ) . future_result( |- r| { result = some( r) ; } ) . spawn { }
1687+ do task( ) . future_result( |+ r| { result = some( r) ; } ) . spawn { }
16881688 assert future:: get( option:: unwrap( result) ) == success;
16891689
16901690 result = none;
1691- do task( ) . future_result( |- r| { result = some( r) ; } ) . unlinked( ) . spawn {
1691+ do task( ) . future_result( |+ r| { result = some( r) ; } ) . unlinked( ) . spawn {
16921692 fail;
16931693 }
16941694 assert future:: get( option:: unwrap( result) ) == failure;
16951695}
16961696
16971697#[ test] #[ should_fail] #[ ignore( cfg( windows) ) ]
16981698fn test_back_to_the_future_result( ) {
1699- let _ = task( ) . future_result( |-r| ( ) ) . future_result( |-r| ( ) ) ;
1699+ let _ = task( ) . future_result( util :: ignore ) . future_result( util :: ignore ) ;
17001700}
17011701
17021702#[ test]
0 commit comments