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