Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
match-restpattern-tuple-2.rs
blob: 40900a36bece4a219417a29cd727692e52f33a3f [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
=
(
1
,
2
,
3
,
4
);
match
x
{
(
1
,
..,
2
,
3
,
4
,
5
)
=>
{},
// { dg-error "expected a tuple with 4 elements, found one with 5 elements" }
_
=>
{}
}
}