rust/src/test/compile-fail/bad-record-pat.rs
2012-08-06 15:36:30 -07:00

4 lines
119 B
Rust

// error-pattern:expected a record with 2 fields, found one with 1
fn main() { match {x: 1, y: 2} { {x: x} => { } } }