mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
19 lines
355 B
Plaintext
19 lines
355 B
Plaintext
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
|
|
|