//@ run-pass trait A { fn g(&self, x: T) -> T { x } } impl A for isize { } fn f>(i: V, j: T) -> T { i.g(j) } pub fn main () { assert_eq!(f(0, 2), 2); }