Skip to content

Commit d936773

Browse files
committed
test: Add a test case for "pub use a::*"
1 parent 35598b4 commit d936773

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/run-pass/reexport-star.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
mod a {
2+
pub fn f() {}
3+
pub fn g() {}
4+
}
5+
6+
mod b {
7+
pub use a::*;
8+
}
9+
10+
fn main() {
11+
b::f();
12+
b::g();
13+
}
14+

0 commit comments

Comments
 (0)