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