summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/struct-literal-in-match-discriminant.stderr
blob: 692b4d73503a43e9064e3f7d39c1db2d6ea12ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: struct literals are not allowed here
  --> $DIR/struct-literal-in-match-discriminant.rs:6:11
   |
LL |       match Foo {
   |  ___________^
LL | |         x: 3
LL | |     } {
   | |_____^
   |
help: surround the struct literal with parentheses
   |
LL ~     match (Foo {
LL |         x: 3
LL ~     }) {
   |

error: aborting due to previous error