{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/30540","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/30540/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/30540/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/30540/events","html_url":"https://github.com/rust-lang/rust/issues/30540","id":123693995,"number":30540,"title":"Slice pattern matching not expressive enough","user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-23T17:15:57Z","updated_at":"2015-12-23T18:57:39Z","closed_at":null,"body":"Following example do not work.\r\n\r\n```rust\r\nfn main() {\r\n    let a = [1, 2, 3];\r\n    match &a {\r\n        [a.., 2, b..] => println!(\"It works\"),\r\n        _ => {},\r\n    }\r\n}\r\n```\r\n\r\nThis results in the error:\r\n\r\n```rust\r\nmain.rs:4:19: 4:21 error: expected one of `,` or `@`, found `..`\r\nmain.rs:4         [a.., 2, b..] => println!(\"It works\"),\r\n                            ^~\r\nCould not compile `test`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\n\r\nEven though, it should not."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/166970482","html_url":"https://github.com/rust-lang/rust/issues/30540#issuecomment-166970482","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/30540","id":166970482,"user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T18:57:39Z","updated_at":"2015-12-23T18:57:39Z","body":"https://github.com/rust-lang/rust/blob/master/src/librustc/middle/check_match.rs#L538-L981"}}