Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
issues
/
issue-3847.rs
blob: 73aaab4183694a190d21c0ac153fb013adb92e83 [
file
] [
log
] [
blame
]
//@ run-pass
mod
buildings
{
pub
struct
Tower
{
pub
height
:
usize
}
}
pub
fn
main
()
{
let
sears
=
buildings
::
Tower
{
height
:
1451
};
let
h
:
usize
=
match
sears
{
buildings
::
Tower
{
height
:
h
}
=>
{
h
}
};
println
!(
"{}"
,
h
);
}