]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-match-discriminant.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / ui / parser / struct-literal-in-match-discriminant.rs
1 struct Foo {
2     x: isize,
3 }
4
5 fn main() {
6     match Foo { //~ ERROR struct literals are not allowed here
7         x: 3
8     } {
9         Foo {
10             x: x
11         } => {}
12     }
13 }