]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/generic-fn-infer.rs
Switch to new param kind bound syntax
[rust.git] / src / test / run-pass / generic-fn-infer.rs
1
2
3
4 // -*- rust -*-
5
6 // Issue #45: infer type parameters in function applications
7 fn id<T: copy>(x: T) -> T { ret x; }
8
9 fn main() { let x: int = 42; let y: int = id(x); assert (x == y); }