2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
|
|
|
|
// Issue #45: infer type parameters in function applications
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-07-10 16:43:25 -05:00
|
|
|
fn id<T>(x: T) -> T { return x; }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2015-06-07 13:00:38 -05:00
|
|
|
pub fn main() { let x: isize = 42; let y: isize = id(x); assert_eq!(x, y); }
|