1 2 3 4 5 6 7 8 9
enum Foo { Bar(isize) } fn main() { match Foo::Bar(1) { Foo { i } => () //~ ERROR expected struct, variant or union type, found enum `Foo` } }