PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/src/test/compile-fail/import-glob-0.rs

http://github.com/jruderman/rust
Rust | 22 lines | 16 code | 5 blank | 1 comment | 0 complexity | e420b70e0d22a6dccac62e188973ad04 MD5 | raw file
 1// error-pattern: unresolved name
 2
 3import module_of_many_things::*;
 4
 5mod module_of_many_things {
 6    export f1;
 7    export f2;
 8    export f4;
 9
10    fn f1() { debug!{"f1"}; }
11    fn f2() { debug!{"f2"}; }
12    fn f3() { debug!{"f3"}; }
13    fn f4() { debug!{"f4"}; }
14}
15
16
17fn main() {
18    f1();
19    f2();
20    f999(); // 'export' currently doesn't work?
21    f4();
22}