2022-11-30 14:01:00 -06:00
|
|
|
error: expected one of `(`, `,`, `=`, `{`, or `}`, found `:`
|
2023-05-02 21:40:08 -05:00
|
|
|
--> $DIR/issue-103869.rs:5:8
|
2022-11-30 14:01:00 -06:00
|
|
|
|
|
2023-05-02 21:40:08 -05:00
|
|
|
LL | enum VecOrMap {
|
2022-11-16 14:46:06 -06:00
|
|
|
| -------- while parsing this enum
|
2023-05-02 21:40:08 -05:00
|
|
|
LL |
|
2022-11-30 14:01:00 -06:00
|
|
|
LL | vec: Vec<usize>,
|
|
|
|
| ^ expected one of `(`, `,`, `=`, `{`, or `}`
|
|
|
|
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
2023-05-02 21:40:08 -05:00
|
|
|
help: perhaps you meant to use `struct` here
|
|
|
|
|
|
|
|
|
LL | struct VecOrMap {
|
|
|
|
| ~~~~~~
|
2022-11-30 14:01:00 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-11-30 14:01:00 -06:00
|
|
|
|