Closed artslob closed 10 months ago
Could you try with version 1.0.0-beta.6
? It has many fixes and we're getting quite close to the final 1.0 release.
@JelteF yes, this version works as expected
derive_more = { version = "1.0.0-beta.6", features = ["full"]}
Great, closing this then as fixed
I used most recent
derive_move
as dependency:Deriving
Unwrap
for this enum works as expected:But this one fails:
Error:
Seems like macro incorrectly generates code that tries to unwrap tuple as inner value when comma is present. But
A(i32,)
is still enum variant with single type inside, not a tuple.Deriving
Unwrap
for enums below work as expected (no error generated):