decl_name_conflicting.rs 293 B

1234567891011121314
  1. mod uhoh {
  2. enum BindingType { Buffer, NotBuffer }
  3. }
  4. #[repr(u32)]
  5. pub enum BindingType { Buffer = 0, NotBuffer = 1 }
  6. #[repr(C)]
  7. pub struct BindGroupLayoutEntry {
  8. pub ty: BindingType, // This is the repr(u32) enum
  9. }
  10. #[no_mangle]
  11. pub extern "C" fn root(entry: BindGroupLayoutEntry) {}