blob: db242418c1d3d3d4598f451b3bc8b82e706dd409 [file] [log] [blame]
fn main() {
enum A {
B,
C,
}
impl A {
fn new() {}
}
fn bar(foo: A) {
match foo {
A::new() => (),
// { dg-error "expected tuple struct or tuple variant, found function" "" { target *-*-* } .-1 }
_ => {}
}
}
}