PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

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