rust/src/test/run-pass/bind-exterior.rs

5 lines
112 B
Rust

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