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

15 lines
606 B
Plaintext
Raw Normal View History

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