We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create a new rust project and copy-paste the following code:
#![allow(non_camel_case_types)] #![allow(non_snake_case)] pub struct BACnet_Application_Data_Value { pub type_: BACnet_Application_Data_Value__bindgen_ty_1, } pub union BACnet_Application_Data_Value__bindgen_ty_1 { pub Special_Event: BACnet_Special_Event, } #[derive(Clone, Copy)] pub struct BACnet_Special_Event { pub period: BACnet_Special_Event__bindgen_ty_1, } #[derive(Clone, Copy)] pub union BACnet_Special_Event__bindgen_ty_1 { pub calendarReference: BACnet_Object_Id, } #[derive(Clone, Copy)] pub struct BACnet_Object_Id { pub type_: u32, } fn main() { let mut enc: BACnet_Application_Data_Value = unsafe { std::mem::zeroed() }; // bug here: enc.type_.Special_Event.period.calendarReference.type_ = 1; }
Originally posted here
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Problem description
Steps to reproduce
Create a new rust project and copy-paste the following code:
Originally posted here
The text was updated successfully, but these errors were encountered: