2015-09-20 07:22:12 -05:00
|
|
|
// 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}; }
|
2015-10-16 15:05:44 -05:00
|
|
|
|
2015-11-20 15:44:15 -06:00
|
|
|
pub mod x {
|
2015-10-16 15:05:44 -05:00
|
|
|
pub fn freopen(filename: *const c_char,
|
|
|
|
mode: *const c_char,
|
|
|
|
mode2: *const c_char,
|
|
|
|
mode3: *const c_char,
|
|
|
|
file: *mut FILE)
|
|
|
|
-> *mut FILE{}
|
|
|
|
}
|
2015-11-20 15:44:15 -06:00
|
|
|
|
|
|
|
mod y { // sup boooooiiii
|
|
|
|
}
|