Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-12582.rs
blob: f3366704e63af58f24eec3f33d1e462e8d2941f2 [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
let
x
=
1
;
let
y
=
2
;
assert_eq
!(
3
,
match
(
x
,
y
)
{
(
1
,
1
)
=>
1
,
(
2
,
2
)
=>
2
,
(
1.
.=
2
,
2
)
=>
3
,
_
=>
4
,
});
// nested tuple
assert_eq
!(
3
,
match
((
x
,
y
),)
{
((
1
,
1
),)
=>
1
,
((
2
,
2
),)
=>
2
,
((
1.
.=
2
,
2
),)
=>
3
,
_
=>
4
,
});
}