.cargo/vendor/cbindgen/tests/rust/decl_name_conflicting.rs
raw| 1 | mod uhoh { |
| 2 | enum BindingType { Buffer, NotBuffer } |
| 3 | } |
| 4 | |
| 5 | #[repr(u32)] |
| 6 | pub enum BindingType { Buffer = 0, NotBuffer = 1 } |
| 7 | |
| 8 | #[repr(C)] |
| 9 | pub struct BindGroupLayoutEntry { |
| 10 | pub ty: BindingType, // This is the repr(u32) enum |
| 11 | } |
| 12 | |
| 13 | #[no_mangle] |
| 14 | pub extern "C" fn root(entry: BindGroupLayoutEntry) {} |