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

UDL can't have a Remote enums with fields #2352

Open
mhammond opened this issue Dec 13, 2024 · 0 comments
Open

UDL can't have a Remote enums with fields #2352

mhammond opened this issue Dec 13, 2024 · 0 comments
Labels
get involved Good opportunity for deeper-dive onboarding

Comments

@mhammond
Copy link
Member

Eg, a simple enum:

[Remote, NonExhaustive]
enum ExternalCrateNonExhaustiveEnum {
"One",
"Two",
};

If we had an enum with fields, we'd need an [Enum, Remote] interface {... }, but that would fail -

// If `[Enum]` is specified it must be the only attribute.

via #2334

@mhammond mhammond added the get involved Good opportunity for deeper-dive onboarding label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
get involved Good opportunity for deeper-dive onboarding
Projects
None yet
Development

No branches or pull requests

1 participant