PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 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(); }