| #![feature(no_core)] | |
| #![no_core] | |
| enum Foo { | |
| A, | |
| B, | |
| C(char), | |
| D { x: i64, y: i64 }, | |
| } | |
| fn inspect(f: Foo) { | |
| match f { | |
| Foo::A => {} | |
| Foo::B => {} | |
| Foo::C { a } => {} | |
| // { dg-error "tuple variant .C. written as struct variant" "" { target *-*-* } .-1 } | |
| Foo::D { x, y } => {} | |
| } | |
| } |