rust/src/test/run-pass/bind-exterior.rs
2011-08-12 18:28:03 -07:00

6 lines
116 B
Rust

fn foo(a: @int, b: @int) -> int { ret *a + *b; }
fn main() { let f1 = bind foo(@10, @12); assert (f1() == 22); }