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

/src/test/compile-fail/bogus-tag.rs

http://github.com/jruderman/rust
Rust | 14 lines | 8 code | 4 blank | 2 comment | 0 complexity | d8899e68a080b2d7fc5badaae1046ade MD5 | raw file
 1// -*- rust -*-
 2
 3// error-pattern: unresolved
 4
 5enum color { rgb(int, int, int), rgba(int, int, int, int), }
 6
 7fn main() {
 8    let red: color = rgb(255, 0, 0);
 9    match red {
10      rgb(r, g, b) => { debug!{"rgb"}; }
11      hsl(h, s, l) => { debug!{"hsl"}; }
12    }
13}
14