Skip to content

Commit

Permalink
Revert "Revert "Add a test case for rust-lang#898. Closes rust-lang#898
Browse files Browse the repository at this point in the history
….""

This reverts commit e305ab3.

Oops again.  Reverting a mistaken revert.
  • Loading branch information
lkuper committed Oct 12, 2011
1 parent e305ab3 commit 813c2eb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/run-pass/issue-898.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fn even(&&e: int) -> bool {
e % 2 == 0
}

fn log_if<T>(c: fn(T)->bool, e: T) {
if c(e) { log e; }
}

fn main() {
(bind log_if(even, _))(2);
}

0 comments on commit 813c2eb

Please sign in to comment.