You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[derive(Debug, Copy, Clone, FromPrimitive)
^^^^^^^^^^^^^
help: message: num-derive doesn't know how to handle newtypes with named fields yet. Please use a tuple-style nentype, or submit a PR!
num-derive version: 0.3.3
Can anyone give me some advice? Thx in advance!
The text was updated successfully, but these errors were encountered:
I can't reproduce the problem with that snippet alone. Are the "more types" still data-less variants?
Yes, the rest of the enum definition are all simple variants. BTW, it this problem could be releated to my GLIBCXX version? I can reproduce this problem on machine with GLIBCXX_3.4.28
Are your types related to GLIBCXX? Otherwise I see no reason why GLIBCXX would affect this.
I noticed that your example code has a different derive line than the one in your error message. Are you sure that you've correctly identified which type is raising this error?
I'm using
bindgen
to create a enum, here is the generated code.And I got this compile error:
num-derive
version: 0.3.3Can anyone give me some advice? Thx in advance!
The text was updated successfully, but these errors were encountered: