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

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

http://github.com/jruderman/rust
Rust | 8 lines | 6 code | 1 blank | 1 comment | 0 complexity | 6fc790b800f3adef464b2e83eccda6b1 MD5 | raw file
1// error-pattern: unresolved name
2mod foo {
3    export x;
4    fn x(y: int) { log(debug, y); }
5    fn z(y: int) { log(debug, y); }
6}
7
8fn main() { foo::z(10); }