Skip to content

Commit a5ccead

Browse files
committed
Add a test that imports can't circumvent exports
1 parent 1dd63ff commit a5ccead

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// xfail-boot
2+
// error-pattern: unresolved name
3+
4+
import m.unexported;
5+
6+
mod m {
7+
export exported;
8+
9+
fn exported() {
10+
}
11+
12+
fn unexported() {
13+
}
14+
}
15+
16+
17+
fn main() {
18+
unexported();
19+
}

0 commit comments

Comments
 (0)