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

http://github.com/jruderman/rust · Rust · 10 lines · 9 code · 1 blank · 0 comment · 0 complexity · 02caf34b82ab3a2a2c01c7a325e7b172 MD5 · raw file

  1. import foo::bar;
  2. mod foo {
  3. import zed::bar;
  4. export bar;
  5. mod zed {
  6. fn bar() { debug!{"foo"}; }
  7. }
  8. }
  9. fn main(args: ~[~str]) { bar(); }