test: Add a test case for "pub use a::*"
This commit is contained in:
parent
35598b4595
commit
d936773e56
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…
Reference in New Issue
Block a user