{"comment":{"url":"https://api.github.com/repos/oli-obk/rust/comments/14436327","html_url":"https://github.com/oli-obk/rust/commit/8488eebe9cfe169c99d1671e4536ae803e04055f#commitcomment-14436327","id":14436327,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars.githubusercontent.com/u/332036?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"8488eebe9cfe169c99d1671e4536ae803e04055f","created_at":"2015-11-17T08:26:50Z","updated_at":"2015-11-17T08:26:50Z","body":"I think it's possible. Until now the following worked (typeck still prevented it, but if you change the length of the array assignment, you get a new error about mismatching array lengths)\r\n\r\n```rust\r\nconst X: usize = 42 && 39;\r\nconst ARR: [i32; X] = [99; 34];\r\n\r\nconst Y: usize = 42.0 == 42.0;\r\nconst ARRR: [i32; Y] = [99; 1];\r\n```\r\n\r\nnow it should give the `InvalidOp` error."}}