Open
Description
Header to reproduce:
typedef struct foo {
int type;
int type_;
};
The resulting code will be:
#[repr(C)]
#[derive(Debug, Copy)]
pub struct foo {
pub type_: ::std::os::raw::c_int,
pub type_: ::std::os::raw::c_int,
}
Which is of course, invalid. It would probably make sense to at least give an error rather than generating invalid code here.