]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3847.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }