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