]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/struct-literal-in-match-discriminant.stderr
Account for ADT bodies and struct expressions
[rust.git] / src / test / ui / parser / struct-literal-in-match-discriminant.stderr
1 error: struct literals are not allowed here
2   --> $DIR/struct-literal-in-match-discriminant.rs:6:11
3    |
4 LL |       match Foo {
5    |  ___________^
6 LL | |         x: 3
7 LL | |     } {
8    | |_____^
9    |
10 help: surround the struct literal with parentheses
11    |
12 LL ~     match (Foo {
13 LL |         x: 3
14 LL ~     }) {
15    |
16
17 error: aborting due to previous error
18