summaryrefslogtreecommitdiffstats
path: root/tests/rust/decl_name_conflicting.rs
blob: 39e9658d33833bbb62843282aadad1644b921d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod uhoh {
    enum BindingType { Buffer, NotBuffer }
}

#[repr(u32)]
pub enum BindingType { Buffer = 0, NotBuffer = 1 }

#[repr(C)]
pub struct BindGroupLayoutEntry {
    pub ty: BindingType, // This is the repr(u32) enum
}

#[no_mangle]
pub extern "C" fn root(entry: BindGroupLayoutEntry) {}