//@ run-pass #![allow(unused_variables)] trait A { fn g(&self, x: usize) -> usize { x } fn h(&self, x: T) { } //~ WARN method `h` is never used } impl A for isize { } fn f>(i: V, j: usize) -> usize { i.g(j) } pub fn main () { assert_eq!(f::(0, 2), 2); assert_eq!(f::(0, 2), 2); }