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

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

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