``` rusti> struct Foo { a: uint } () rusti> enum Foobar { A(int) } () rusti> match Foo { a: 5 } { A(_) => {} _ => {} } error: internal compiler error: extract_variant_args: pattern has non-enum type ```
Activity
Check type of fields when struct is matched against enum-like pattern
Merge pull request rust-lang#4849 from RalfJung/rustup
Merge rust-lang#4849