2015-04-23 18:43:46 +12:00
|
|
|
// Deeply indented modules.
|
|
|
|
|
2015-09-20 14:22:12 +02:00
|
|
|
mod foo {
|
|
|
|
mod bar {
|
2016-01-28 19:53:41 +13:00
|
|
|
mod baz {}
|
2015-09-20 14:22:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-23 18:43:46 +12:00
|
|
|
mod foo {
|
|
|
|
mod bar {
|
|
|
|
mod baz {
|
|
|
|
fn foo() {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-28 19:53:41 +13:00
|
|
|
mod qux {}
|
2015-04-23 18:43:46 +12:00
|
|
|
}
|
2015-09-20 14:22:12 +02:00
|
|
|
|
|
|
|
mod boxed {
|
|
|
|
pub use std::boxed::{Box, HEAP};
|
|
|
|
}
|
2015-10-16 22:05:44 +02:00
|
|
|
|
2015-11-20 22:44:15 +01:00
|
|
|
pub mod x {
|
2015-10-16 22:05:44 +02: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 22:44:15 +01:00
|
|
|
|
|
|
|
mod y {
|
|
|
|
// sup boooooiiii
|
|
|
|
}
|