mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
16 lines
227 B
Rust
16 lines
227 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(); }
|