Debian Codegraph @

gcc/testsuite/rust/compile/method2.rs

raw
1 struct Foo<A, B>(A, B);
2
3 impl Foo<i32, f32> {
4 fn test<X>(self, a: X) -> X {
5 a
6 }
7 }
8
9 fn main() {
10 let a;
11 a = Foo(123, 456f32);
12
13 let b;
14 b = a.test::<asfasfr>(false);
15 // { dg-error "could not resolve type path .asfasfr." "" { target *-*-* } .-1 }
16 }