blob: c1319a351c804999f2899284d1c31cd26084dfbc [file]
#![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 } => {}
}
}