2022-11-30 20:01:00 +00:00
|
|
|
error: expected one of `(`, `,`, `=`, `{`, or `}`, found `:`
|
2023-05-03 02:40:08 +00:00
|
|
|
--> $DIR/issue-103869.rs:5:8
|
2022-11-30 20:01:00 +00:00
|
|
|
|
|
2023-05-03 02:40:08 +00:00
|
|
|
LL | enum VecOrMap {
|
2022-11-16 20:46:06 +00:00
|
|
|
| -------- while parsing this enum
|
2023-05-03 02:40:08 +00:00
|
|
|
LL |
|
2022-11-30 20:01:00 +00: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-03 02:40:08 +00:00
|
|
|
help: perhaps you meant to use `struct` here
|
|
|
|
|
|
|
|
|
LL | struct VecOrMap {
|
|
|
|
| ~~~~~~
|
2022-11-30 20:01:00 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-11-30 20:01:00 +00:00
|
|
|
|