]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3847.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / issues / issue-3847.rs
1 // run-pass
2 mod buildings {
3     pub struct Tower { pub height: usize }
4 }
5
6 pub fn main() {
7     let sears = buildings::Tower { height: 1451 };
8     let h: usize = match sears {
9         buildings::Tower { height: h } => { h }
10     };
11
12     println!("{}", h);
13 }