Add support for destructuring vectors in match expressions
This commit is contained in:
parent
5bf7ba0773
commit
1968cb315a
20 changed files with 521 additions and 10 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue