rust/src/test/run-pass/generic-bind-2.rs

12 lines
196 B
Rust
Raw Normal View History

// xfail-boot
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);
}