/src/test/compile-fail/export-import.rs

http://github.com/jruderman/rust · Rust · 14 lines · 7 code · 6 blank · 1 comment · 0 complexity · 0ec078b8fa0822952bb885232fcc1466 MD5 · raw file

  1. // error-pattern: import
  2. import m::unexported;
  3. mod m {
  4. export exported;
  5. fn exported() { }
  6. fn unexported() { }
  7. }
  8. fn main() { unexported(); }