about summary refs log tree commit diff
path: root/tests/ui/modules/mod-same-item-names.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/modules/mod-same-item-names.rs')
-rw-r--r--tests/ui/modules/mod-same-item-names.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/modules/mod-same-item-names.rs b/tests/ui/modules/mod-same-item-names.rs
new file mode 100644
index 00000000000..dd2925aa53f
--- /dev/null
+++ b/tests/ui/modules/mod-same-item-names.rs
@@ -0,0 +1,16 @@
+//@ run-pass
+
+#![allow(dead_code)]
+
+
+
+
+mod foo {
+    pub fn baz() { }
+}
+
+mod bar {
+    pub fn baz() { }
+}
+
+pub fn main() { }