/src/test/compile-fail/bad-record-pat.rs
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} => { } } }