blob: 9a54985efc17e932d90150f3657c3b7e64951bf0 [file]
fn main() {
enum color {
rgb(uint, uint, uint),
cmyk(uint, uint, uint, uint),
no_color,
}
fn foo(c: color) {
match c {
rgb(_, _) => { }
//~^ ERROR this pattern has 2 fields, but the corresponding variant has 3 fields
cmyk(_, _, _, _) => { }
no_color => { }
}
}
}