-
Notifications
You must be signed in to change notification settings - Fork 745
Unions are generated with fields that are not Copy
#895
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
Comments
@photoszzt made a comment in PR #892:
|
Thanks for tracking this down! I think @photoszzt has it correct: we should only emit |
For stable rust, it's generating BindgenUnion. We need to also generate the feature gate in the nightly target. |
Depends on which stable rust after #892 ;)
We never generate the Our test suite would need to generate them, however. But we don't even currently test on nightly rust, so we would need to start doing that, and also have a |
We can add the #![feature(...)] in lib.rs under expectations dir. |
This compiles successfully with rust 1.57 which is the minimum supported version |
Input C/C++ Header
Bindgen Invocation
Actual Results
Attempting to compile with
rustc
with stable 1.19 or nightly (1.21.0-nightly (ed16b0a1d 2017-08-05)
) gives:Expected Results
No compilation failure
The text was updated successfully, but these errors were encountered: