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

4 lines
119 B
Rust
Raw Normal View History

2011-07-11 14:13:20 +02:00
// error-pattern:expected a record with 2 fields, found one with 1
2012-08-06 12:34:08 -07:00
fn main() { match {x: 1, y: 2} { {x: x} => { } } }