parent
55379a97d4
commit
f480203fdd
11
src/test/run-pass/issue-898.rs
Normal file
11
src/test/run-pass/issue-898.rs
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user