-// 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.
//
pub fn main() {
let a = Foo { x: 1, y: 2 };
match a {
- Foo { x: x, y: y } => printfln!("yes, %d, %d", x, y)
+ Foo { x: x, y: y } => println!("yes, {}, {}", x, y)
+ }
+
+ match a {
+ Foo { .. } => ()
}
}