Skip to content

Commit 585070f

Browse files
committed
---
yaml --- r: 5765 b: refs/heads/master c: 813c2eb h: refs/heads/master i: 5763: 19954bc v: v3
1 parent ec76463 commit 585070f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: e305ab38518352d934c081687a6cdccd5af4dfb6
2+
refs/heads/master: 813c2eb3698ad94c1c672bf81b1010486fc62a08

trunk/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)