struct Foo(A, B); impl Foo { fn test(self, a: X) -> X { a } } fn main() { let a; a = Foo(123, 456f32); let b; b = a.test::(false); // { dg-error "could not resolve type path .asfasfr." "" { target *-*-* } .-1 } }