mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-19 03:03:21 +00:00
27 lines
283 B
Rust
27 lines
283 B
Rust
// Deeply indented modules.
|
|
|
|
mod foo {
|
|
mod bar {
|
|
mod baz {
|
|
}
|
|
}
|
|
}
|
|
|
|
mod foo {
|
|
mod bar {
|
|
mod baz {
|
|
fn foo() {
|
|
bar()
|
|
}
|
|
}
|
|
}
|
|
|
|
mod qux {
|
|
|
|
}
|
|
}
|
|
|
|
mod boxed {
|
|
pub use std::boxed::{Box, HEAP};
|
|
}
|