mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
a0e85f9a5f
Fixes #463
38 lines
558 B
Rust
38 lines
558 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};
|
|
}
|
|
|
|
pub mod x {
|
|
pub fn freopen(filename: *const c_char,
|
|
mode: *const c_char,
|
|
mode2: *const c_char,
|
|
mode3: *const c_char,
|
|
file: *mut FILE)
|
|
-> *mut FILE {
|
|
}
|
|
}
|
|
|
|
mod y {
|
|
// sup boooooiiii
|
|
}
|