summaryrefslogtreecommitdiffstats
path: root/src/test/ui/blind/blind-item-item-shadow.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/blind/blind-item-item-shadow.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/blind/blind-item-item-shadow.rs b/src/test/ui/blind/blind-item-item-shadow.rs
new file mode 100644
index 000000000..82d07ea70
--- /dev/null
+++ b/src/test/ui/blind/blind-item-item-shadow.rs
@@ -0,0 +1,7 @@
+mod foo { pub mod foo { } }
+
+use foo::foo;
+//~^ ERROR the name `foo` is defined multiple times
+//~| `foo` reimported here
+
+fn main() {}