summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import7.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import7.rs')
-rw-r--r--tests/ui/imports/import7.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/imports/import7.rs b/tests/ui/imports/import7.rs
new file mode 100644
index 000000000..aca7fbdc4
--- /dev/null
+++ b/tests/ui/imports/import7.rs
@@ -0,0 +1,18 @@
+// run-pass
+#![allow(unused_imports)]
+
+use foo::zed;
+use bar::baz;
+
+mod foo {
+ pub mod zed {
+ pub fn baz() { println!("baz"); }
+ }
+}
+mod bar {
+ pub use foo::zed::baz;
+ pub mod foo {
+ pub mod zed {}
+ }
+}
+pub fn main() { baz(); }