2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-07-10 16:43:25 -05:00
|
|
|
fn quux<T>(x: T) -> T { let f = id::<T>; return f(x); }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2013-07-10 16:43:25 -05:00
|
|
|
fn id<T>(x: T) -> T { return x; }
|
2011-07-08 19:43:44 -05:00
|
|
|
|
2015-06-07 13:00:38 -05:00
|
|
|
pub fn main() { assert_eq!(quux(10), 10); }
|