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

/src/test/compile-fail/or-patter-mismatch.rs

http://github.com/jruderman/rust
Rust | 5 lines | 2 code | 2 blank | 1 comment | 0 complexity | 35008b08760644fd9ced70ed9476d6a0 MD5 | raw file
1// error-pattern: mismatched types
2
3enum blah { a(int, int, uint), b(int, int), }
4
5fn main() { match a(1, 1, 2u) { a(_, x, y) | b(x, y) => { } } }