Skip to content

Commit 3722326

Browse files
committed
Add or enable some tests.
1 parent 4ccdece commit 3722326

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
445445
import2.rs \
446446
import3.rs \
447447
import4.rs \
448+
import5.rs \
448449
item-name-overload.rs \
449450
large-records.rs \
450451
lazy-init.rs \
@@ -483,6 +484,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
483484
arg-type-mismatch.rs \
484485
import.rs \
485486
import2.rs \
487+
import3.rs \
486488
while-type-error.rs \
487489
), \
488490
$(wildcard test/*/*.rs test/*/*.rc))

src/test/run-pass/import5.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import foo.bar;
2+
mod foo {
3+
import zed.bar;
4+
mod zed {
5+
fn bar() {
6+
log "foo";
7+
}
8+
}
9+
}
10+
11+
fn main(vec[str] args) {
12+
bar();
13+
}

0 commit comments

Comments
 (0)