rust/src/test/run-pass/inner-module.rs
Marijn Haverbeke 3816e57fd2 Downcase std modules again, move to :: for module dereferencing
This should be a snapshot transition.
2011-05-12 21:30:44 +02:00

18 lines
206 B
Rust

// -*- rust -*-
mod inner {
mod inner2 {
fn hello() {
log "hello, modular world";
}
}
fn hello() {
inner2::hello();
}
}
fn main() {
inner::hello();
inner::inner2::hello();
}