/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
- // error-pattern: unresolved name
- mod foo {
- export x;
- fn x() { bar::x(); }
- }
- mod bar {
- export y;
- fn x() { debug!{"x"}; }
- fn y() { }
- }
- fn main() { foo::x(); }