2011-07-27 07:19:39 -05:00
|
|
|
fn quux[T](x: &T) -> T { let f = id[T]; ret f(x); }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn id[T](x: &T) -> T { ret x; }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { assert (quux(10) == 10); }
|