Debian Codegraph @

gcc/testsuite/rust/compile/issue-3656.rs

raw
1 enum Foo {
2 Bar(isize),
3 }
4
5 fn main() {
6 match Foo::Bar(205) {
7 Foo { i } => (),
8 // { dg-error "expected struct, variant or union type, found enum .Foo. .E0574." "" { target *-*-* } .-1 }
9 }
10 }