rust/src/test/ui/parser/struct-literal-in-match-discriminant.stderr

15 lines
607 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: expected one of `=>`, `@`, `if`, or `|`, found `:`
--> $DIR/struct-literal-in-match-discriminant.rs:19:10
|
LL | x: 3 //~ ERROR expected one of `=>`, `@`, `if`, or `|`, found `:`
| ^ expected one of `=>`, `@`, `if`, or `|` here
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
--> $DIR/struct-literal-in-match-discriminant.rs:23:11
|
LL | } => {} //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `=>`
| ^^ expected one of `.`, `;`, `?`, `}`, or an operator here
error: aborting due to 2 previous errors