aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/bind-exterior.rs
blob: f6f369185fc7a07ef289d58cb992138ccbea46c9 (plain) (blame)
1
2
3
4
5
6
7
8
fn foo(@int a, @int b) -> int {
  ret a+b;
}

fn main() {
  auto f1 = bind foo(@10, @12);
  assert (f1() == 22);
}