-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"expected pattern" when parsing slice patterns #1479
Comments
The relevant code is here: Note that comments are executable tests |
That particular case parses without errors with fn main() {
if let &[ref start.., ref end] = &variant_spans[..] {}
}
But it's a misparse: the Another test case produces a fn main() {
let [a, b..] = [];
}
|
@estebank hm, I am now confused, what |
I believe you're correct in all your understanding. I don't think the syntax accepted in the RFC has been implemented, so |
The syntax in the RFC was implemented in rust-lang/rust#62550. cc rust-lang/rust#62254 |
The parser cannot cope with the following code using slice patterns:
The text was updated successfully, but these errors were encountered: