2012-09-07 16:52:28 -05:00
|
|
|
fn quux<T: Copy>(x: T) -> T { let f = id::<T>; return f(x); }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2012-09-07 16:52:28 -05:00
|
|
|
fn id<T: Copy>(x: T) -> T { return x; }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2011-08-12 08:37:25 -05:00
|
|
|
fn main() { assert (quux(10) == 10); }
|