summaryrefslogtreecommitdiffstats
path: root/tests/rust/assoc_const_conflict.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/assoc_const_conflict.rs')
-rw-r--r--tests/rust/assoc_const_conflict.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rust/assoc_const_conflict.rs b/tests/rust/assoc_const_conflict.rs
new file mode 100644
index 0000000..7907e32
--- /dev/null
+++ b/tests/rust/assoc_const_conflict.rs
@@ -0,0 +1,9 @@
+#[repr(C)]
+struct Foo {}
+
+pub const Foo_FOO: u32 = 42;
+
+impl Foo {
+ const FOO: i32 = 0;
+}
+