Add support for destructuring vectors in match expressions

This commit is contained in:
Jakub Wieczorek 2012-12-08 20:22:43 +00:00 committed by Graydon Hoare
parent 5bf7ba0773
commit 1968cb315a
20 changed files with 521 additions and 10 deletions

View file

@ -389,6 +389,7 @@ enum pat_ {
pat_region(@pat), // borrowed pointer pattern
pat_lit(@expr),
pat_range(@expr, @expr),
pat_vec(~[@pat], Option<@pat>)
}
#[auto_serialize]