Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
generics9.rs
blob: 949fbb1a41cd6525444f27aaf57f598d5fd1fb09 [
file
] [
log
] [
blame
]
struct
Foo
<
A
,
B
=
(
A
,
B
)>(
A
,
B
);
// { dg-error "type parameters with a default cannot use forward declared identifiers" "" { target *-*-* } .-1 }
fn
main
()
{
let
a
:
Foo
<
bool
>;
a
=
Foo
::<
bool
>(
true
,
(
false
,
true
));
let
b
:
(
bool
,
bool
);
b
=
a
.
1
;
}