]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/struct-pattern-matching.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / struct-pattern-matching.rs
index d2b038fab0e9d0d58e92cbdf32d4f2b8b104e2c4..6033554d0cbeeef5001f5db809d911ea039a0738 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -18,4 +18,8 @@ pub fn main() {
     match a {
         Foo { x: x, y: y } => println!("yes, {}, {}", x, y)
     }
+
+    match a {
+        Foo { .. } => ()
+    }
 }