File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- // xfail-test FIXME #2263
12
11
// xfail-fast
13
12
// This test had to do with an outdated version of the iterable trait.
14
13
// However, the condition it was testing seemed complex enough to
15
14
// warrant still having a test, so I inlined the old definitions.
16
15
17
16
trait iterable < A > {
18
- fn iter ( blk : & fn ( A ) ) ;
17
+ fn iter ( & self , blk : & fn ( A ) ) ;
19
18
}
20
19
21
20
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) ; }
23
22
}
24
23
25
24
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) ) }
27
26
}
28
27
29
28
fn filter < A , IA : iterable < A > > ( self : IA , prd : @fn ( A ) -> bool , blk : & fn ( A ) ) {
You can’t perform that action at this time.
0 commit comments