Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
consts
/
const-tuple-struct.rs
blob: 0144afaaceb348bbe11ae5f48026e492ee14dee9 [
file
] [
log
] [
blame
]
// 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
);
}
}
}