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

/src/test/compile-fail/import-loop-2.rs

http://github.com/jruderman/rust
Rust | 13 lines | 9 code | 3 blank | 1 comment | 0 complexity | 6eb67542186cb506778cbd125a9e0ef8 MD5 | raw file
 1// error-pattern:import
 2
 3mod a {
 4    import b::x;
 5    export x;
 6}
 7
 8mod b {
 9    import a::x;
10    export x;
11
12    fn main() { let y = x; }
13}