rust/src/test/run-pass/mod-inside-fn.rs

11 lines
115 B
Rust
Raw Normal View History

fn f() -> int {
mod m {
fn g() -> int { 720 }
}
m::g()
}
fn main() {
assert f() == 720;
}