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

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

http://github.com/jruderman/rust
Rust | 3 lines | 1 code | 1 blank | 1 comment | 0 complexity | 236cbb514e254cde534ff4ae8bc17a10 MD5 | raw file
1// error-pattern:expected a record with 2 fields, found one with 1
2
3fn main() { match {x: 1, y: 2} { {x: x} => { } } }