]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19086.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-19086.rs
1 use Foo::FooB;
2
3 enum Foo {
4     FooB { x: i32, y: i32 }
5 }
6
7 fn main() {
8     let f = FooB { x: 3, y: 4 };
9     match f {
10         FooB(a, b) => println!("{} {}", a, b),
11         //~^ ERROR expected tuple struct or tuple variant, found struct variant `FooB`
12     }
13 }