2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
// Issue #45: infer type parameters in function applications
|
2012-01-05 08:35:37 -06:00
|
|
|
fn id<T: copy>(x: T) -> T { ret x; }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-08-12 08:37:25 -05:00
|
|
|
fn main() { let x: int = 42; let y: int = id(x); assert (x == y); }
|