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

/src/test/run-pass/tag.rs

http://github.com/jruderman/rust
Rust | 9 lines | 3 code | 5 blank | 1 comment | 1 complexity | 61a337e0cd1df4f215b04e4bf780eced MD5 | raw file
1
2
3
4// -*- rust -*-
5enum colour { red(int, int), green, }
6
7fn f() { let x = red(1, 2); let y = green; assert (x != y); }
8
9fn main() { f(); }