mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
18 lines
246 B
Rust
18 lines
246 B
Rust
//@ check-pass
|
|
|
|
mod a {
|
|
pub mod b { pub struct Foo; }
|
|
|
|
pub mod c {
|
|
use super::b;
|
|
pub struct Bar(pub b::Foo);
|
|
}
|
|
|
|
pub use self::c::*;
|
|
}
|
|
|
|
fn main() {
|
|
let _ = a::c::Bar(a::b::Foo);
|
|
let _ = a::Bar(a::b::Foo);
|
|
}
|