-
Notifications
You must be signed in to change notification settings - Fork 739
extern const array is unexpectedly mut #1727
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
Labels
Comments
Hmm... Yeah, this looks def. wrong. |
So the clang type for this test-case is |
emilio
added a commit
to emilio/rust-bindgen
that referenced
this issue
Feb 17, 2020
emilio
added a commit
that referenced
this issue
Feb 17, 2020
I knows its a little late, but thank you for fixing this! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
The const from the array seems to be lost. Arrays are a bit strange in C, but as best I can tell when you put
const
on an array it does in fact mean that values in the array are const, and as such the binding on the Rust side should not bemut
.The text was updated successfully, but these errors were encountered: