1 This error means that an attempt was made to match a struct type enum
2 variant as a non-struct type:
5 enum Foo { B { i: u32 } }
7 fn bar(foo: Foo) -> u32 {
9 Foo::B(i) => i, // error E0164
14 Try using `{}` instead:
17 enum Foo { B { i: u32 } }
19 fn bar(foo: Foo) -> u32 {