test: Add a test case for "pub use a::*"
This commit is contained in:
parent
35598b4595
commit
d936773e56
1 changed files with 14 additions and 0 deletions
14
src/test/run-pass/reexport-star.rs
Normal file
14
src/test/run-pass/reexport-star.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
mod a {
|
||||
pub fn f() {}
|
||||
pub fn g() {}
|
||||
}
|
||||
|
||||
mod b {
|
||||
pub use a::*;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
b::f();
|
||||
b::g();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue