1 2 3 4 5 6 7 8 9 10 11 12 13
use Foo::FooB; enum Foo { FooB { x: i32, y: i32 } } fn main() { let f = FooB { x: 3, y: 4 }; match f { FooB(a, b) => println!("{} {}", a, b), //~^ ERROR expected tuple struct or tuple variant, found variant `FooB` } }