{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/26778","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/26778/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26778/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/26778/events","html_url":"https://github.com/rust-lang/rust/pull/26778","id":93054361,"number":26778,"title":"Error message for E0307 is weird #26485","user":{"login":"jawline","id":230591,"avatar_url":"https://avatars.githubusercontent.com/u/230591?v=3","gravatar_id":"","url":"https://api.github.com/users/jawline","html_url":"https://github.com/jawline","followers_url":"https://api.github.com/users/jawline/followers","following_url":"https://api.github.com/users/jawline/following{/other_user}","gists_url":"https://api.github.com/users/jawline/gists{/gist_id}","starred_url":"https://api.github.com/users/jawline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawline/subscriptions","organizations_url":"https://api.github.com/users/jawline/orgs","repos_url":"https://api.github.com/users/jawline/repos","events_url":"https://api.github.com/users/jawline/events{/privacy}","received_events_url":"https://api.github.com/users/jawline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-07-04T22:41:49Z","updated_at":"2015-07-19T11:47:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/26778","html_url":"https://github.com/rust-lang/rust/pull/26778","diff_url":"https://github.com/rust-lang/rust/pull/26778.diff","patch_url":"https://github.com/rust-lang/rust/pull/26778.patch"},"body":"Print the error message and then what is expected by the repeat count so the output makes more sense when there is an error in the const expression"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/122651251","html_url":"https://github.com/rust-lang/rust/pull/26778#issuecomment-122651251","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/26778","id":122651251,"user":{"login":"jawline","id":230591,"avatar_url":"https://avatars.githubusercontent.com/u/230591?v=3","gravatar_id":"","url":"https://api.github.com/users/jawline","html_url":"https://github.com/jawline","followers_url":"https://api.github.com/users/jawline/followers","following_url":"https://api.github.com/users/jawline/following{/other_user}","gists_url":"https://api.github.com/users/jawline/gists{/gist_id}","starred_url":"https://api.github.com/users/jawline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jawline/subscriptions","organizations_url":"https://api.github.com/users/jawline/orgs","repos_url":"https://api.github.com/users/jawline/repos","events_url":"https://api.github.com/users/jawline/events{/privacy}","received_events_url":"https://api.github.com/users/jawline/received_events","type":"User","site_admin":false},"created_at":"2015-07-19T11:47:06Z","updated_at":"2015-07-19T11:47:06Z","body":"Modified so the error now reads\r\n\r\nsrc/lib.rs:20:15: 20:23 help: run `rustc --explain E0306` to see a detailed explanation\r\nsrc/lib.rs:21:14: 21:35 error: expected constant integer for repeat count, but found unsupported constant expr [E0307]\r\nsrc/lib.rs:21 \tlet q = [5; mem::size_of::<i32>()];\r\n\r\nonly for unsupport constant expr \r\n\r\nmake check reports\r\nsummary of 45 test runs: 9078 passed; 0 failed; 89 ignored; 0 measured\r\n\r\n"}}