blob: 5177f5f126e0b998f6b4ca264950c522ac848e5e (
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 1 previous error
|