2011-08-23 17:58:53 -05:00
|
|
|
fn quux<@T>(x: &T) -> T { let f = id::<T>; ret f(x); }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2011-08-23 17:58:53 -05:00
|
|
|
fn id<@T>(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); }
|