summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-32222.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-32222.rs')
-rw-r--r--tests/ui/imports/issue-32222.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-32222.rs b/tests/ui/imports/issue-32222.rs
new file mode 100644
index 000000000..4ed06bff8
--- /dev/null
+++ b/tests/ui/imports/issue-32222.rs
@@ -0,0 +1,22 @@
+// check-pass
+
+mod foo {
+ pub fn bar() {}
+}
+
+pub use foo::*;
+use b::bar;
+
+mod foobar {
+ use super::*;
+}
+
+mod a {
+ pub mod bar {}
+}
+
+mod b {
+ pub use a::bar;
+}
+
+fn main() {}