]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-6344-match.rs
Merge commit '4236289b75ee55c78538c749512cdbeea5e1c332' into update-rustfmt
[rust.git] / src / test / ui / issues / issue-6344-match.rs
1 // run-pass
2 #![allow(non_shorthand_field_patterns)]
3
4 struct A { x: usize }
5
6 impl Drop for A {
7     fn drop(&mut self) {}
8 }
9
10 pub fn main() {
11     let a = A { x: 0 };
12
13     match a {
14         A { x : ref x } => {
15             println!("{}", x)
16         }
17     }
18 }