librustc: Fix cross-crate reexports. rs=blocking-servo
This commit is contained in:
parent
cb355bf7ad
commit
64305174c9
4 changed files with 56 additions and 27 deletions
11
src/test/auxiliary/pub_use_mods_xcrate.rs
Normal file
11
src/test/auxiliary/pub_use_mods_xcrate.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
pub mod a {
|
||||
pub mod b {
|
||||
pub mod c {
|
||||
fn f(){}
|
||||
fn g(){}
|
||||
}
|
||||
}
|
||||
|
||||
pub use b::c;
|
||||
}
|
||||
|
||||
8
src/test/run-pass/pub_use_mods_xcrate_exe.rs
Normal file
8
src/test/run-pass/pub_use_mods_xcrate_exe.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// xfail-fast
|
||||
// aux-build:pub_use_mods_xcrate.rs
|
||||
|
||||
extern mod pub_use_mods_xcrate;
|
||||
use pub_use_mods_xcrate::a::c;
|
||||
|
||||
fn main(){}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue