]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-32004.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-32004.rs
1 enum Foo {
2 Bar(i32),
3 Baz
4 }
5
6 struct S;
7
8 fn main() {
9 match Foo::Baz {
10 Foo::Bar => {}
11 //~^ ERROR expected unit struct, unit variant or constant, found tuple variant `Foo::Bar`
12 _ => {}
13 }
14
15 match S {
16 S(()) => {}
17 //~^ ERROR expected tuple struct or tuple variant, found unit struct `S`
18 }
19 }