summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-after-macro-expand-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import-after-macro-expand-1.rs')
-rw-r--r--tests/ui/imports/import-after-macro-expand-1.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/imports/import-after-macro-expand-1.rs b/tests/ui/imports/import-after-macro-expand-1.rs
new file mode 100644
index 000000000..d7a8aaf2f
--- /dev/null
+++ b/tests/ui/imports/import-after-macro-expand-1.rs
@@ -0,0 +1,19 @@
+// check-pass
+// https://github.com/rust-lang/rust/issues/56593#issue-388659456
+
+struct Foo;
+
+mod foo {
+ use super::*;
+
+ #[derive(Debug)]
+ pub struct Foo;
+}
+
+mod bar {
+ use super::foo::*;
+
+ fn bar(_: Foo) {}
+}
+
+fn main() {}