summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-14082.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-14082.rs')
-rw-r--r--src/test/ui/issues/issue-14082.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-14082.rs b/src/test/ui/issues/issue-14082.rs
new file mode 100644
index 000000000..52b8c8680
--- /dev/null
+++ b/src/test/ui/issues/issue-14082.rs
@@ -0,0 +1,20 @@
+// check-pass
+// pretty-expanded FIXME #23616
+
+#![allow(unused_imports, dead_code)]
+
+use foo::Foo;
+
+mod foo {
+ pub use m::Foo; // this should shadow d::Foo
+}
+
+mod m {
+ pub struct Foo;
+}
+
+mod d {
+ pub struct Foo;
+}
+
+fn main() {}