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

25 lines
860 B
Plaintext
Raw Normal View History

error: expected `}`, found `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-54379.rs:9: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 `,`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-54379.rs:9: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`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-54379.rs:9: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`.