This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2024-12-02 03:33:59 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
9ef580fa6f
rust
/
tests
/
ui
/
match
/
match-vec-mismatch-2.rs
7 lines
113 B
Rust
Raw
Normal View
History
Unescape
Escape
Add support for destructuring vectors in match expressions
2012-12-08 20:22:43 +00:00
fn
main
(
)
{
match
(
)
{
Update tests with the new error messages
2014-10-21 01:40:15 +00:00
[
(
)
]
=
>
{
}
implement RFC495 semantics for slice patterns non-MIR translation is still not supported for these and will happily ICE. This is a [breaking-change] for many uses of slice_patterns.
2016-03-11 10:54:59 +00:00
//~^ ERROR expected an array or slice, found `()`
Add support for destructuring vectors in match expressions
2012-12-08 20:22:43 +00:00
}
}
Reference in New Issue
Copy Permalink