☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
match5.rs
☽
☼
gcc/testsuite/rust/compile/match5.rs
code
plain
raw
1
enum Foo {
2
A,
3
B,
4
C(char),
5
D { x: i64, y: i64 },
6
}
7
8
fn inspect(f: Foo) {
9
match f {
10
Foo::A => {}
11
Foo::B => {}
12
Foo::C(a) => {}
13
Foo::D(x, y) => {} // { dg-error "expected tuple struct or tuple variant, found struct variant .Foo::D." }
14
}
15
}