2018-10-06 17:05:42 -05:00
|
|
|
error: expected `}`, found `,`
|
|
|
|
--> $DIR/issue-54379.rs:18:22
|
|
|
|
|
|
2018-11-27 03:56:36 -06:00
|
|
|
LL | MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
|
2018-10-06 17:05:42 -05:00
|
|
|
| --^
|
|
|
|
| | |
|
|
|
|
| | expected `}`
|
|
|
|
| `..` must be at the end and cannot have a trailing comma
|
|
|
|
|
|
|
|
error: expected `,`
|
|
|
|
--> $DIR/issue-54379.rs:18:24
|
|
|
|
|
|
2018-11-27 03:56:36 -06:00
|
|
|
LL | MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
|
2018-10-06 17:05:42 -05:00
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0027]: pattern does not mention field `s1`
|
|
|
|
--> $DIR/issue-54379.rs:18:9
|
|
|
|
|
|
2018-11-27 03:56:36 -06:00
|
|
|
LL | MyStruct { .., Some(_) } => {}, //~ ERROR pattern does not mention field `s1`
|
2018-10-06 17:05:42 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `s1`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0027`.
|