2012-01-05 08:35:37 -06:00
|
|
|
fn quux<T: copy>(x: T) -> T { let f = bind id::<T>(_); ret f(x); }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2012-01-05 08:35:37 -06:00
|
|
|
fn id<T: copy>(x: T) -> T { ret x; }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2011-08-12 08:37:25 -05:00
|
|
|
fn main() { assert (quux(10) == 10); }
|