]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3847.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[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 }