Skip to content

Why does Pod not work with 2 generic-fields? #277

Answered by Lokathor
DasLixou asked this question in Q&A
Discussion options

You must be logged in to vote

at first glance it looks like that code should work? did you also use repr(C) in the actual code? if repr(C) is in the picture, then your type is basically the same as [T; 2].

If that doesn't work then probably it's just that the proc-macro derive isn't sufficiently advanced, and someone could probably do a PR to support that. I'm going to make this into an issue so that this can be checked on longer term.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@DasLixou
Comment options

@DasLixou
Comment options

@Lokathor
Comment options

@Lokathor
Comment options

@DasLixou
Comment options

Answer selected by Lokathor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants