]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/struct-pattern-matching.rs
Forbid pattern-matching structs until the next snapshot (#3215)
[rust.git] / src / test / run-pass / struct-pattern-matching.rs
1 // xfail-test
2 struct Foo {
3     x: int;
4     y: int;
5 }
6
7 fn main() {
8     let a = Foo { x: 1, y: 2 };
9     match a {
10         Foo { x: x, y: y } => io::println(fmt!("yes, %d, %d", x, y))
11     }
12 }
13
14
15