aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile2
-rw-r--r--src/test/run-pass/import5.rs13
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 3c977092..eac87bfd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -445,6 +445,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
import2.rs \
import3.rs \
import4.rs \
+ import5.rs \
item-name-overload.rs \
large-records.rs \
lazy-init.rs \
@@ -483,6 +484,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
arg-type-mismatch.rs \
import.rs \
import2.rs \
+ import3.rs \
while-type-error.rs \
), \
$(wildcard test/*/*.rs test/*/*.rc))
diff --git a/src/test/run-pass/import5.rs b/src/test/run-pass/import5.rs
new file mode 100644
index 00000000..5e07e708
--- /dev/null
+++ b/src/test/run-pass/import5.rs
@@ -0,0 +1,13 @@
+import foo.bar;
+mod foo {
+ import zed.bar;
+ mod zed {
+ fn bar() {
+ log "foo";
+ }
+ }
+}
+
+fn main(vec[str] args) {
+ bar();
+}