Sign in
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
match-structpattern-tuplefield.rs
blob: eacdae34c6410c96e4980c9d02c00ca88160c846 [
file
] [
log
] [
blame
]
#![
feature
(
no_core
)]
#![
no_core
]
pub
struct
TupStruct
(
i32
,
i32
);
pub
fn
main
()
{
let
t
=
TupStruct
(
1
,
2
);
match
t
{
TupStruct
{
0
:
1
,
1
:
2
}
=>
{}
TupStruct
{
1
:
b
,
..
}
=>
{}
TupStruct
{
0
:
1
,
..
}
=>
{}
_
=>
{}
}
}