summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import6.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/import6.rs')
-rw-r--r--tests/ui/imports/import6.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/imports/import6.rs b/tests/ui/imports/import6.rs
new file mode 100644
index 000000000..e11b28531
--- /dev/null
+++ b/tests/ui/imports/import6.rs
@@ -0,0 +1,15 @@
+// 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 fn main() { baz(); }