summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-32119.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-32119.rs')
-rw-r--r--tests/ui/imports/issue-32119.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-32119.rs b/tests/ui/imports/issue-32119.rs
new file mode 100644
index 000000000..36adb5289
--- /dev/null
+++ b/tests/ui/imports/issue-32119.rs
@@ -0,0 +1,17 @@
+// check-pass
+
+pub type T = ();
+mod foo { pub use super::T; }
+mod bar { pub use super::T; }
+
+pub use foo::*;
+pub use bar::*;
+
+mod baz {
+ pub type T = ();
+ mod foo { pub use super::T as S; }
+ mod bar { pub use super::foo::S as T; }
+ pub use self::bar::*;
+}
+
+fn main() {}