Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
const-tuple-struct.rs
blob: 1670faa70e8a710ce7369c75325a69765a86243f [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
struct
Bar
(
isize
,
isize
);
static
X
:
Bar
=
Bar
(
1
,
2
);
pub
fn
main
()
{
match
X
{
Bar
(
x
,
y
)
=>
{
assert_eq
!(
x
,
1
);
assert_eq
!(
y
,
2
);
}
}
}