blob: 7a9d9bb36fc77e5a0d60b41dfa490d7fb86a982d [file] [log] [blame]
fn main() {
// ANCHOR: here
struct Point {
x: i32,
y: i32,
z: i32,
}
let origin = Point { x: 0, y: 0, z: 0 };
match origin {
Point { x, .. } => println!("x is {}", x),
}
// ANCHOR_END: here
}