aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/generic-bind-2.rs
blob: 95a8cab48cc15b6de67fbace48cb2236a43e8b9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
fn id[T](&T t) -> T {
  ret t;
}

fn main() {
  auto t = tup(1,2,3,4,5,6,7);
  check (t._5 == 6);
  auto f0 = bind id[tup(int,int,int,int,int,int,int)](t);
  check (f0()._5 == 6);
}