Skip to content

Commit a8003a5

Browse files
committed
---
yaml --- r: 5761 b: refs/heads/master c: f480203 h: refs/heads/master i: 5759: 2ce1f95 v: v3
1 parent 3ddb8ff commit a8003a5

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: 55379a97d4a7c124772d6aa7f5b78166aefd9bdb
2+
refs/heads/master: f480203fdd4d8b498453c1f7cc0ad4f59d87c596

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)