/src/test/compile-fail/export2.rs

http://github.com/jruderman/rust · Rust · 17 lines · 10 code · 6 blank · 1 comment · 0 complexity · 91109e918c8ee3603956f156cc58844e MD5 · raw file

  1. // error-pattern: unresolved name
  2. mod foo {
  3. export x;
  4. fn x() { bar::x(); }
  5. }
  6. mod bar {
  7. export y;
  8. fn x() { debug!{"x"}; }
  9. fn y() { }
  10. }
  11. fn main() { foo::x(); }