summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-after-macro-expand-14.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import-after-macro-expand-14.rs')
-rw-r--r--tests/ui/imports/import-after-macro-expand-14.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/imports/import-after-macro-expand-14.rs b/tests/ui/imports/import-after-macro-expand-14.rs
new file mode 100644
index 000000000..4d461a0e2
--- /dev/null
+++ b/tests/ui/imports/import-after-macro-expand-14.rs
@@ -0,0 +1,22 @@
+// check-pass
+
+use crate::a::HeaderMap;
+
+mod b {
+ pub mod http {
+ #[derive(Clone)]
+ pub struct HeaderMap;
+ }
+
+ pub use self::http::*;
+ #[derive(Debug)]
+ pub struct HeaderMap;
+}
+
+mod a {
+ pub use crate::b::*;
+}
+
+fn main() {
+ let h: crate::b::HeaderMap = HeaderMap;
+}