Skip to content

Commit f480203

Browse files
committed
Add a test case for rust-lang#898. Closes rust-lang#898.
Seems to have been fixed.
1 parent 55379a9 commit f480203

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
fn even(&&e: int) -> bool {
2+
e % 2 == 0
3+
}
4+
5+
fn log_if<T>(c: fn(T)->bool, e: T) {
6+
if c(e) { log e; }
7+
}
8+
9+
fn main() {
10+
(bind log_if(even, _))(2);
11+
}

0 commit comments

Comments
 (0)