]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3847.rs
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
[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 }