{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/45044","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/45044/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/45044/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/45044/events","html_url":"https://github.com/rust-lang/rust/issues/45044","id":263075908,"number":45044,"title":"ICE: type mismatch comparing repeat and repeat","user":{"login":"arielb1","id":1830974,"avatar_url":"https://avatars1.githubusercontent.com/u/1830974?v=4","gravatar_id":"","url":"https://api.github.com/users/arielb1","html_url":"https://github.com/arielb1","followers_url":"https://api.github.com/users/arielb1/followers","following_url":"https://api.github.com/users/arielb1/following{/other_user}","gists_url":"https://api.github.com/users/arielb1/gists{/gist_id}","starred_url":"https://api.github.com/users/arielb1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arielb1/subscriptions","organizations_url":"https://api.github.com/users/arielb1/orgs","repos_url":"https://api.github.com/users/arielb1/repos","events_url":"https://api.github.com/users/arielb1/events{/privacy}","received_events_url":"https://api.github.com/users/arielb1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-05T10:30:38Z","updated_at":"2017-10-05T10:30:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## STR\r\n```\r\n$ rustc --version\r\nrustc 1.22.0-nightly (185cc5f26 2017-10-02)\r\n```\r\n\r\n```Rust\r\nconst X: [u8; 1] = [0; 1];\r\n\r\nfn main() {\r\n    match &X {\r\n        &X => println!(\"a\"),\r\n        _ => println!(\"b\"),\r\n    };\r\n}\r\n```\r\n\r\n## Expected Result\r\n\r\ncode compiles and runs\r\n\r\n## Actual Result\r\n```\r\nwarning: unreachable pattern\r\n --> x.rs:6:9\r\n  |\r\n6 |         &X => println!(\"a\"),\r\n  |         ^^\r\n  |\r\n  = note: #[warn(unreachable_patterns)] on by default\r\n\r\nerror: internal compiler error: type mismatch comparing Aggregate(Repeat(Const { ty: u8, val: Integral(U8(0)) }, 1)) and Aggregate(Repeat(Const { ty: u8, val: Integral(U8(0)) }, 1))\r\n --> x.rs:6:10\r\n  |\r\n6 |         &X => println!(\"a\"),\r\n  |          ^\r\n\r\nerror: aborting due to previous error\r\n\r\n```"}}
{"actor":{"display_login":"arielb1"}}