about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/capture-clauses-unboxed-closures.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/test/run-pass/capture-clauses-unboxed-closures.rs b/src/test/run-pass/capture-clauses-unboxed-closures.rs
index 99e6d6e7a4f..a826f4df5b3 100644
--- a/src/test/run-pass/capture-clauses-unboxed-closures.rs
+++ b/src/test/run-pass/capture-clauses-unboxed-closures.rs
@@ -8,13 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-test
-//
-// This is ignored because it depends on #16122.
-
 #![feature(overloaded_calls, unboxed_closures)]
 
-fn each<'a,T,F:|&mut: &'a T|>(x: &'a [T], mut f: F) {
+fn each<'a,T,F:FnMut(&'a T)>(x: &'a [T], mut f: F) {
     for val in x.iter() {
         f(val)
     }
@@ -23,7 +19,6 @@ fn each<'a,T,F:|&mut: &'a T|>(x: &'a [T], mut f: F) {
 fn main() {
     let mut sum = 0u;
     let elems = [ 1u, 2, 3, 4, 5 ];
-    each(elems, ref |&mut: val: &uint| sum += *val);
+    each(elems, |&mut: val: &uint| sum += *val);
     assert_eq!(sum, 15);
 }
-