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

Fix complex enum with lifetime variants #205

Merged
merged 1 commit into from
Jul 3, 2022
Merged

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Jul 3, 2022

Previously it was a compile error to have complex enum having variants
with lifetimes:

enum Bar<'bar> {
    A { foo: Foo<'bar> },
    B,
    C,
}

This commit will fix this so that the above code will compile correctly.

Fixes #200

Previously it was a compile error to have complex enum having variants
with lifetimes:

```rust
enum Bar<'bar> {
    A { foo: Foo<'bar> },
    B,
    C,
}
```

This commit will fix this so that the above code will compile correctly.
@juhaku juhaku merged commit 2181c4a into master Jul 3, 2022
@juhaku juhaku deleted the fix-complex-enum-lifetimes branch July 3, 2022 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

Can't derive Component for complex enum with field containing lifetime generic
1 participant