Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
structs-enums
/
tuple-struct-matching.rs
blob: a5436624c658a43767622807c46c5d11af0e564c [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
struct
Foo
(
isize
,
isize
);
pub
fn
main
()
{
let
x
=
Foo
(
1
,
2
);
match
x
{
Foo
(
a
,
b
)
=>
{
assert_eq
!(
a
,
1
);
assert_eq
!(
b
,
2
);
println
!(
"{} {}"
,
a
,
b
);
}
}
}