Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing error message when there's no subenum yet #42

Open
KSXGitHub opened this issue Nov 2, 2024 · 0 comments
Open

Confusing error message when there's no subenum yet #42

KSXGitHub opened this issue Nov 2, 2024 · 0 comments

Comments

@KSXGitHub
Copy link

When I add #[subenum(Sub)] to the top of the enum before declaring its variant, an error message would appear:

expected pattern, found `,`

This error is confusing. I suggest improving this error message to points out the cause directly, or make it disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant