]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3847.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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 }