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

http://github.com/jruderman/rust · Rust · 3 lines · 1 code · 1 blank · 1 comment · 1 complexity · 9fe4312a11106b969ddef1db0801e6ab MD5 · raw file

  1. // error-pattern:did not expect a record with a field `q`
  2. fn main() { match {x: 1, y: 2} { {x: x, q: q} => { } } }