60ae1590af
And remove support for the old syntax
10 lines
187 B
Rust
10 lines
187 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
|
|
// Issue #45: infer type parameters in function applications
|
|
fn id<T: copy>(x: T) -> T { ret x; }
|
|
|
|
fn main() { let x: int = 42; let y: int = id(x); assert (x == y); }
|