2015-01-08 04:54:35 -06:00
|
|
|
struct Foo(isize, isize);
|
2012-11-02 11:56:09 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = Foo(1, 2);
|
|
|
|
match x { //~ ERROR non-exhaustive
|
2013-09-25 00:16:43 -05:00
|
|
|
Foo(1, b) => println!("{}", b),
|
|
|
|
Foo(2, b) => println!("{}", b)
|
2012-11-02 11:56:09 -05:00
|
|
|
}
|
|
|
|
}
|