mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
17 lines
226 B
Rust
17 lines
226 B
Rust
// run-pass
|
|
|
|
mod a {
|
|
pub mod b {
|
|
pub mod a {
|
|
pub fn foo() -> isize { return 1; }
|
|
}
|
|
}
|
|
}
|
|
|
|
mod c {
|
|
use a::b::a;
|
|
pub fn bar() { assert_eq!(a::foo(), 1); }
|
|
}
|
|
|
|
pub fn main() { c::bar(); }
|