Traits for macro expansion not always correctly carried with generics when using Encode/Decode #193
Labels
area/types
Related to rasn’s types for ASN.1
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
It seems that syntax matters for declaring generics and trait declarations.
I have the following struct:
It does not compile, and if I expand
Encode
macro for example,CertExtType
condition is not carried.However, if I change syntax to following
Correct macro code is generated. I almost ended up writing custom functions, but noticed by accident. If someone else fights the same problem 😁 .
The text was updated successfully, but these errors were encountered: