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

/src/test/compile-fail/bad-record-pat-2.rs

http://github.com/jruderman/rust
Rust | 3 lines | 1 code | 1 blank | 1 comment | 0 complexity | 9fe4312a11106b969ddef1db0801e6ab MD5 | raw file
1// error-pattern:did not expect a record with a field `q`
2
3fn main() { match {x: 1, y: 2} { {x: x, q: q} => { } } }