Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
method2.rs
blob: 961a03990e4ac2d7f590101e57f68825876b8079 [
file
] [
log
] [
blame
]
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 "could not resolve type path .asfasfr." "" { target *-*-* } .-1 }
}