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