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