Skip to content

Commit 1afdf98

Browse files
committed
---
yaml --- r: 137167 b: refs/heads/release-prep c: 39344c2 h: refs/heads/master i: 137165: f478ac7 137163: 2dcdd6f 137159: 1878e05 137151: 2b183f3 v: v3
1 parent 9d408be commit 1afdf98

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2929
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
3030
refs/heads/libuv-update-temp-branch: 6ed22c618766f1f2a2e108eef8ce3f51be0f70b7
3131
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
32-
refs/heads/release-prep: c4c19fe96003bb5bdaa6ca35603eb4220b1d5ca8
32+
refs/heads/release-prep: 39344c2d7ec6fdacb7085aefda3e440891e0855a

branches/release-prep/src/test/run-pass/capture-clauses-unboxed-closures.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-test
12-
//
13-
// This is ignored because it depends on #16122.
14-
1511
#![feature(overloaded_calls, unboxed_closures)]
1612

17-
fn each<'a,T,F:|&mut: &'a T|>(x: &'a [T], mut f: F) {
13+
fn each<'a,T,F:FnMut(&'a T)>(x: &'a [T], mut f: F) {
1814
for val in x.iter() {
1915
f(val)
2016
}
@@ -23,7 +19,6 @@ fn each<'a,T,F:|&mut: &'a T|>(x: &'a [T], mut f: F) {
2319
fn main() {
2420
let mut sum = 0u;
2521
let elems = [ 1u, 2, 3, 4, 5 ];
26-
each(elems, ref |&mut: val: &uint| sum += *val);
22+
each(elems, |&mut: val: &uint| sum += *val);
2723
assert_eq!(sum, 15);
2824
}
29-

0 commit comments

Comments
 (0)