/src/test/compile-fail/export2.rs
Rust | 17 lines | 10 code | 6 blank | 1 comment | 0 complexity | 91109e918c8ee3603956f156cc58844e MD5 | raw file
1// error-pattern: unresolved name 2 3mod foo { 4 export x; 5 6 fn x() { bar::x(); } 7} 8 9mod bar { 10 export y; 11 12 fn x() { debug!{"x"}; } 13 14 fn y() { } 15} 16 17fn main() { foo::x(); }