]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-19086.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-19086.rs
CommitLineData
1a4d82fc 1use Foo::FooB;
223e47cc 2
1a4d82fc
JJ
3enum Foo {
4 FooB { x: i32, y: i32 }
223e47cc
LB
5}
6
7fn main() {
1a4d82fc
JJ
8 let f = FooB { x: 3, y: 4 };
9 match f {
10 FooB(a, b) => println!("{} {}", a, b),
487cf647 11 //~^ ERROR expected tuple struct or tuple variant, found variant `FooB`
1a4d82fc 12 }
223e47cc 13}