From 0d60918855aefde24ee8d72238b167ef1b09628b Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 7 Mar 2011 18:13:39 -0800 Subject: Most of the way through genericizing bind properly with new malloc path. Still getting the thunk call wrong. --- src/test/run-pass/generic-bind.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/generic-bind.rs b/src/test/run-pass/generic-bind.rs index 61085eb5..5f44bcee 100644 --- a/src/test/run-pass/generic-bind.rs +++ b/src/test/run-pass/generic-bind.rs @@ -3,6 +3,11 @@ fn id[T](&T t) -> T { } fn main() { - auto f = bind id[int](_); - check (f(10) == 10); + auto t = tup(1,2,3,4,5,6,7); + check (t._5 == 6); + // FIXME: this needs to work. + // auto f0 = bind id[tup(int,int,int,int,int,int,int)](t); + auto f1 = bind id[tup(int,int,int,int,int,int,int)](_); + // check (f0()._5 == 6); + check (f1(t)._5 == 6); } -- cgit v1.2.3