Skip to content

Commit 8491ce6

Browse files
committed
fixed up test, but now it has a trait failure
1 parent 5a3f788 commit 8491ce6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/run-pass/issue-2185.rs

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

11-
// xfail-test FIXME #2263
1211
// xfail-fast
1312
// This test had to do with an outdated version of the iterable trait.
1413
// However, the condition it was testing seemed complex enough to
1514
// warrant still having a test, so I inlined the old definitions.
1615

1716
trait iterable<A> {
18-
fn iter(blk: &fn(A));
17+
fn iter(&self, blk: &fn(A));
1918
}
2019

2120
impl<A> iterable<A> for @fn(&fn(A)) {
22-
fn iter(blk: &fn(A)) { self(blk); }
21+
fn iter(&self, blk: &fn(A)) { self(blk); }
2322
}
2423

2524
impl iterable<uint> for @fn(&fn(uint)) {
26-
fn iter(blk: &fn(&&v: uint)) { self( |i| blk(i) ) }
25+
fn iter(&self, blk: &fn(v: uint)) { self( |i| blk(i) ) }
2726
}
2827

2928
fn filter<A,IA:iterable<A>>(self: IA, prd: @fn(A) -> bool, blk: &fn(A)) {

0 commit comments

Comments
 (0)