summaryrefslogtreecommitdiffstats
path: root/tests/rust/decl_name_conflicting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/decl_name_conflicting.rs')
-rw-r--r--tests/rust/decl_name_conflicting.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rust/decl_name_conflicting.rs b/tests/rust/decl_name_conflicting.rs
new file mode 100644
index 0000000..39e9658
--- /dev/null
+++ b/tests/rust/decl_name_conflicting.rs
@@ -0,0 +1,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) {}