Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
d91e86e963128ebd9e0baee42d1504670dab1565
/
.
/
tests
/
ui
/
inner-module.rs
blob: 111f2cab857f23deb79c2f16c2d9d18db1a153e0 [
file
] [
log
] [
blame
]
//@ run-pass
mod
inner
{
pub
mod
inner2
{
pub
fn
hello
()
{
println
!(
"hello, modular world"
);
}
}
pub
fn
hello
()
{
inner2
::
hello
();
}
}
pub
fn
main
()
{
inner
::
hello
();
inner
::
inner2
::
hello
();
}