PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/import.rs

http://github.com/jruderman/rust
Rust | 11 lines | 9 code | 2 blank | 0 comment | 0 complexity | 555d42f31b73239d6721dd43ef43553b MD5 | raw file
 1mod foo {
 2    fn x(y: int) { log(debug, y); }
 3}
 4
 5mod bar {
 6    import foo::x;
 7    import z = foo::x;
 8    fn thing() { x(10); z(10); }
 9}
10
11fn main() { bar::thing(); }