rust/tests/source/mod-1.rs
2015-10-16 23:05:11 +02:00

27 lines
465 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}; }
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{}
}