2019-06-12 10:18:32 -05:00
|
|
|
// check-pass
|
|
|
|
|
2016-04-08 21:34:52 -05:00
|
|
|
mod a {
|
|
|
|
pub mod b { pub struct Foo; }
|
|
|
|
|
|
|
|
pub mod c {
|
|
|
|
use super::b;
|
|
|
|
pub struct Bar(pub b::Foo);
|
|
|
|
}
|
|
|
|
|
|
|
|
pub use self::c::*;
|
|
|
|
}
|
|
|
|
|
2018-10-31 07:08:01 -05:00
|
|
|
fn main() {
|
2016-04-08 21:34:52 -05:00
|
|
|
let _ = a::c::Bar(a::b::Foo);
|
|
|
|
let _ = a::Bar(a::b::Foo);
|
|
|
|
}
|