rust/src/test/ui/resolve/issue-54379.stderr

25 lines
863 B
Plaintext
Raw Normal View History

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`
| --^
| | |
| | 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`
| ^^^^
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`
| ^^^^^^^^^^^^^^^^^^^^^^^^ missing field `s1`
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0027`.