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

4 lines
116 B
Rust
Raw Normal View History

// error-pattern:did not expect a record with a field `q`
2011-07-11 07:13:20 -05:00
2012-08-06 14:34:08 -05:00
fn main() { match {x: 1, y: 2} { {x: x, q: q} => { } } }